// background
setBackgroundImage(space);
// question style
textFont(Jellybean, 22);
fill(255,255,255);
// question
words("When was the first landing on the moon?",30,400);
// answers style
fill(0,128,128);
textFont(Bubblegum, 24);
// answer 1
words("1975",150,340);
// answer 2
words("1969",150,260);
//wrong answer
if (answer == 1) {
fill(255,255,255);
textFont(Bubblegum,32);
words("Try again!",220,100);
image(evilGnom,10,0,180,210);
}
//correct answer
if (answer == 2) {
fill(255,255,255);
textFont(Bubblegum,32);
words("Awesome!",220,100);
image(happyGnom,10,0,180,210);
}