CODE:
float circle = 0;
float x = 0;
float y = 0;
void setup(){
size(500,500);
}
void draw(){
background(255);
line(250,0,250,500);
circle();
x=x+(mouseX-x)/10.0;
y=y+(mouseY-y)/10.0;
}
void circle(){
ellipse(x,y,30,30);
ellipse(x,y,20,20);
}
Here i am hoping to create a interactive line by making the ellipse, make contact with the line and make the line break. I want the line to be hard to break so its a challenge to make it break! And when it breaks up the lines bounce of the wall and ends up on the ground.
I think this is the idea im going to develop because this idea sounds more practicle and alot more fun compared to my other concepts. Also the code is going to be fun trying to figure it out!
No comments:
Post a Comment