// background
setBackgroundImage(space);
// question style
textFont(Jellybean, 22);
fill(255,255,255);
// question
words("How many planets are in our solar system?",30,400);
// answers style
fill(0,128,128);
textFont(Bubblegum, 24);
// answer 1
words("9 planets",150,340);
// answer 2
words("8 planets",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);
}