int holo=85;
int hello=85;
void setup() {
size(400,400);
background(255);
smooth();
println("Ready to roll!"); // pantalla abajo
int d1 = 1 + int(random(20));
println("Rolling..." + d1);
int d2 = 1 + int(random(20));
println("Rollimg..." + d2);
int d3 = 1 + int(random(6));
println("Rolling..." + d3);
println("Finished.");
}
void draw(){
background(255);
fill(255,40,120);
ellipse(100,100,100,100);
fill(255);
ellipse(110,95,50,50);
fill(0);
ellipse(88+mouseX/40,93+mouseY/40,5,5);
fill(0);
ellipse(108+mouseX/40,93+mouseY/40,5,5);
line(95,110,105,110);
line(85,hello,95,holo);
line(105,hello,115,holo);
if(mousePressed==true){
if(holo==85){holo=88;}
else if(holo==88){holo=85;}
}
}
No hay comentarios:
Publicar un comentario