Alright so... just thought i'd post this..
So first of all instead of circles I have made a new shape which almost looks like a candy wrapper.
I have done this to create something more exciting than cirlces bouncing... So I added a few squares to it to keep you interested :)
I have created a new funtion where if you press the mouse, the 'Candy Wrapper's' (circles) increase there speed.
CODE:
void movement() {
x = x + speedX;
y = y + speedY;
if(mousePressed == true){
x = x + speedX+0.1;
y = y + speedY+0.1;
}
}
I thought this was a good idea because it would give you more of a challenge to hit them away.

No comments:
Post a Comment