// Hintergrundbild
setBackgroundImage(space);
// Style der Quiz-Frage
textFont(Jellybean, 22);
fill(255,255,255);
// Quiz-Frage
words("Wie viele Planeten hat unser Sonnensystem?",30,400);
// Style der Antworten
fill(0,128,128);
textFont(Bubblegum, 24);
// Antwort 1
words("9 Planeten",150,340);
// Antwort 2
words("8 Planeten",150,260);
// Falsche Antwort
if (answer == 1) {
fill(255,255,255);
textFont(Bubblegum,32);
words("Versuch es nochmal!",220,100);
image(evilGnom,10,0,180,210);
}
// Richtige Antwort
if (answer == 2) {
fill(255,255,255);
textFont(Bubblegum,32);
words("Fabelhaft!",220,100);
image(happyGnom,10,0,180,210);
}