Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (BallY == y && BallX == x) // check for collision
- {
- x = 80; // reset x to initial
- y = 240; // reset y to initial
- z = 100; //reset z to initial
- }
- if (BallY == y && BallX == x) // check for collision
- {
- x = 80; // reset x to initial
- y = 240; // reset y to initial
- z = 100; //reset z to initial
- for (int i=50; i<width; i+=80)
- {
- fill(250,0,0);
- ellipse(i, 50, 70, 70);
- }
- }
Add Comment
Please, Sign In to add comment