int page=0;
void setup(){
size(800,600);
page+=1;
}
void draw(){
switch(page){
case 1:drawPage1();break;
case 2:drawPage2();break;
case 3:drawPage3();break;
case 4:drawPage4(); break;
default:break;
}
}
void drawPage1(){
background(0);textSize(15);
fill(255);
text("Jenneferin babasının 3 kızı vardır KızlarınınA adı Lili ve Lulu’dur 3. ismi nedir ",0,100);
if(mouseX>150 && mouseY>400 && mouseX<250 && mouseY<450 && mousePressed==true){
fill(42,255,15);
rect(150,400,100,50);
fill(255,0,0 );
rect(300,400,100,50);
setup();
drawPage2();
}
else if(mouseX>300 && mouseY>400 && mouseX<400 && mouseY<450 && mousePressed==true){
fill(255,0,0 );
rect(300,400,100,50);
fill(42,255,15);
rect(150,400,100,50);
setup();
drawPage2();
}
else {
fill(324,0,115);
rect(150,400,100,50);
fill(42,125,1512);
rect(300,400,100,50);
fill(255);
text(“Jennifer”,185,430);
text(“Lala”,340,430);
}
}
void drawPage2(){
background(0); textSize(15);
fill(255);
text(“5 Katlı binanın son katına çıkmak için kaç merdiven çıkmak gerekir”,0,100);
if(mouseX>150 && mouseY>400 && mouseX<250 && mouseY<450 && mousePressed==true){
fill(42,255,15);
rect(150,400,100,50);
fill(255,0,0 );
rect(300,400,100,50);
setup();
drawPage3();
}
else if(mouseX>300 && mouseY>400 && mouseX<400 && mouseY<450 && mousePressed==true){
fill(255,0,0 );
rect(300,400,100,50);
fill(42,255,15);
rect(150,400,100,50);
setup();
drawPage3();
}
else {
fill(324,0,115);
rect(150,400,100,50);
fill(42,125,1512);
rect(300,400,100,50);
fill(255);
text(“6”,185,430);
text(“5”,340,430);
}
}
void drawPage3(){
textSize(15);
fill(255);
text(“ANAN”,0,100);
if(mouseX>150 && mouseY>400 && mouseX<250 && mouseY<450 && mousePressed==true){
fill(42,255,15);
rect(150,400,100,50);
fill(255,0,0 );
rect(300,400,100,50);
}
else if(mouseX>300 && mouseY>400 && mouseX<400 && mouseY<450 && mousePressed==true){
fill(255,0,0 );
rect(300,400,100,50);
fill(42,255,15);
rect(150,400,100,50);
}
else {
fill(324,0,115);
rect(150,400,100,50);
fill(42,125,1512);
rect(300,400,100,50);
fill(255);
text(“62”,185,430);
text(“123”,340,430);
}
}
void reset(){
setup();
}
void drawPage4(){
textSize(15);
fill(255);
text(“ANAN AND BACIN”,0,100);
if(mouseX>150 && mouseY>400 && mouseX<250 && mouseY<450 && mousePressed==true){
fill(42,255,15);
rect(150,400,100,50);
fill(255,0,0 );
rect(300,400,100,50);
}
else if(mouseX>300 && mouseY>400 && mouseX<400 && mouseY<450 && mousePressed==true){
fill(255,0,0 );
rect(300,400,100,50);
fill(42,255,15);
rect(150,400,100,50);
}
else {
fill(324,0,115);
rect(150,400,100,50);
fill(42,125,1512);
rect(300,400,100,50);
fill(255);
text(“62”,185,430);
text(“123”,340,430);
}
}