float x= 200;
float y= 200;
float speed = 2;
void setup() {
size(600, 600);
smooth();
}
void draw() {
background(0);
x= x + speed;
ellipse(x, y,50,50);
fill(255,0,0);
}
float x= 200;
float y= 200;
float speed = 2;
void setup() {
size(600, 600);
smooth();
}
void draw() {
background(0);
x= x + speed;
ellipse(x, y,50,50);
fill(255,0,0);
}
float x= 200;
float y= 200;
float speed = 2;
void setup(){
size(200,200);
smooth();
}
void draw(){
background(0);
x = x + speed;
ellipse(mouseX,mouseY,20,20);
}
http://www.openprocessing.org/sketch/91461
“http://www.openprocessing.org/sketch/91457/embed/?width=600&height=400&border=true”></iframe>
Loops added
http://www.openprocessing.org/sketch/91422
Not sure if the images are going to show up, but they’re there….
added moving images, also fixed building 2 code using a while loop
Press D to change to Day and N to change to Night….
hold the mouse button down for the shooting stars
I am thinking about making a cyborg/robot for my project by using shapes like ellipse and rectangle and etc. The robot will shoot i beams or laser and try to interact with key and mouse pressed. Put a nice background and well develop scene where the robot/cyborg is taking a stroll on the street.