pastebin
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
pastebin
Follow @pastebin
create new paste
trending pastes
sign up
login
my settings
my profile
My Pastes
Public Pastes
Untitled
5 sec ago
Untitled
5 sec ago
How can you make a recu...
6 sec ago
Mentalist S02E06 FRENCH...
6 sec ago
Icy Tank Dox
9 sec ago
Untitled
17 sec ago
Untitled
19 sec ago
Untitled
21 sec ago
Layout Width
Share Pastebin
Spoon
By: a guest | Feb 9th, 2010 | Syntax:
None
| Size: 0.30 KB | Hits: 32 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
class Player {
int xposish; int yposish;
color paddlecolor = color(150);
Player(int screen_y)
{
xposish=200;
yposish=screen_y;
}
void move(int x){
xposish = x;
}
void draw()
{
fill(paddlecolor);
rect(xposish, yposish, PADDLEWIDTH, PADDLEHEIGHT);
}
}
create new paste
|
create new version of this paste
RAW Paste Data
class Player { int xposish; int yposish; color paddlecolor = color(150); Player(int screen_y) { xposish=200; yposish=screen_y; } void move(int x){ xposish = x; } void draw() { fill(paddlecolor); rect(xposish, yposish, PADDLEWIDTH, PADDLEHEIGHT); } }