// background
setBackgroundImage(science);
// question style
textFont(Jellybean, 22);
fill(255,255,255);
// question
words("what fruit do i prefere?",30,400);
// answers style
fill(0,128,128);
textFont(Bubblegum, 24);
// answer 1
words("apple",150,340);
// answer 2
words("banana",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);
}