Advertisement
Guest User

Main

a guest
Jan 22nd, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Player thePlayer;
  2. Ball theBall;
  3. void setup(){
  4. size(SCREEN_X,SCREEN_Y);
  5. thePlayer = new Player();
  6. theBall = new Ball();
  7. ellipseMode(RADIUS);
  8. }
  9. void draw(){
  10. background(0);
  11. thePlayer.move(mouseX);
  12. theBall.move();
  13. theBall.collide(thePlayer);
  14. thePlayer.draw();
  15. theBall.draw();
  16. noCursor();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement