Files
am-id-game-engine/Player.java
2026-02-27 20:10:29 +00:00

18 lines
327 B
Java

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;
}
}