Lane Johnson
Posts: 3
Nickname: tebadi11
Registered: Sep, 2006
|
|
Pong
|
Posted: Nov 16, 2006 12:17 PM
|
|
|
Advertisement
|
Heres the code I have for the paddle class of Pong. I really have no idea what to do here. Any help?
public class paddle { private int X; private int Y; private int appWidth; private int appHeight; public class paddle(int nXpos, int nYpos, int appletHeight, int appletWidth) { X = nXpos; Y = nYpos; appWidth = appWidth; appHeight = appHeight; } public void moveUp() { } public void moveDown() { } public void draw (Graphics g) { g.setColor(Color.red); g.fillRect(x,y,5,15); } public int yPos() { } public int xPos() { } }
|
|