Initial commit
This commit is contained in:
18
Player.java
Normal file
18
Player.java
Normal file
@@ -0,0 +1,18 @@
|
||||
public class Player implements Moveable{
|
||||
int x,y,width,height;
|
||||
|
||||
public Player(int x1, int y1, int w, int h){
|
||||
x = x1;
|
||||
y = y1;
|
||||
width = w;
|
||||
height = h;
|
||||
}
|
||||
|
||||
public void moveX(int moveX){
|
||||
this.x += moveX;
|
||||
}
|
||||
|
||||
public void moveY(int moveY){
|
||||
this.y += moveY;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user