// background
setBackgroundImage(spaceship);
// question style
textFont(Bubblegum, 26);
fill(204,204,255);
// question
words("What is my favorite ice-cream?",90,400);
// answers style
fill(204,102,255);
textFont(Jellybean, 24);
// answer 1
words("Vanilla",150,345);
// answer 2
words("Strawberry",150,265);
//wrong answer
if (answer == 1) {
fill(255,255,255);
textFont(Bubblegum,32);
words("Ooops, try again!",200,100);
image(evilGnofu,40,0,140,200);
}
//correct answer
if (answer == 2) {
fill(255,255,255);
textFont(Bubblegum,32);
words("Of course!",200,100);
textFont(Bubblegum,26);
words("Let's have some ice-cream!",200,60);
image(happyGnofu,40,0,130,200);
}