Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player thePlayer;
- Ball theBall;
- void setup(){
- size(SCREEN_X,SCREEN_Y);
- thePlayer = new Player();
- theBall = new Ball();
- ellipseMode(RADIUS);
- }
- void draw(){
- background(0);
- thePlayer.move(mouseX);
- theBall.move();
- theBall.collide(thePlayer);
- thePlayer.draw();
- theBall.draw();
- noCursor();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement