// achtergrond
setBackgroundImage(spaceship);
// vraag stijl
textFont(Cookie, 22);
fill(255,255,255);
// vraag
words("Wat is de zon?",30,400);
// antwoorden stijl
fill(0,128,128);
textFont(Cookie, 24);
// antwoord 1
words("ster",220,340);
// antwoord 2
words("planeet",220,260);
// fout antwoord
if (answer == 2) {
fill(255,255,255);
textFont(Cookie,32);
words("Jamer!",220,100);
image(evilGnom,10,0,180,210);
}
// goed antwoord
if (answer == 1) {
fill(255,255,255);
textFont(Cookie,32);
words("Well done!",220,100);
image(happyGnom,10,0,180,210);
}