Guest User

Untitled

a guest
May 25th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. if (BallY == y && BallX == x) // check for collision
  2. {
  3. x = 80; // reset x to initial
  4. y = 240; // reset y to initial
  5. z = 100; //reset z to initial
  6. }
  7.  
  8. if (BallY == y && BallX == x) // check for collision
  9. {
  10. x = 80; // reset x to initial
  11. y = 240; // reset y to initial
  12. z = 100; //reset z to initial
  13. for (int i=50; i<width; i+=80)
  14. {
  15. fill(250,0,0);
  16. ellipse(i, 50, 70, 70);
  17. }
  18. }
Add Comment
Please, Sign In to add comment