Share Pastebin
Guest
Public paste!

Spoon

By: a guest | Feb 9th, 2010 | Syntax: None | Size: 0.30 KB | Hits: 32 | Expires: Never
Copy text to clipboard
  1. class Player {
  2.  
  3.   int xposish; int yposish;
  4.   color paddlecolor = color(150);
  5.  
  6.   Player(int screen_y)
  7.   {
  8.     xposish=200;
  9.     yposish=screen_y;
  10.   }
  11.   void move(int x){
  12.     xposish = x;
  13.   }
  14.  
  15. void draw()
  16.   {
  17.     fill(paddlecolor);
  18.     rect(xposish, yposish, PADDLEWIDTH, PADDLEHEIGHT);
  19.   }
  20. }