Browse Source

refactoring: fixed uninitialised player direction

remotes/origin/menu
fdai2751 11 months ago
parent
commit
870b845630
  1. 1
      src/main/java/pacmanGame/Player.java

1
src/main/java/pacmanGame/Player.java

@ -8,6 +8,7 @@ public class Player {
public Player(GameManager gameManager) {
this.gameManager = gameManager;
this.position = new Vector2(-1,-1);
this.direction = new Vector2(0,-1);
}
public void Move() {

Loading…
Cancel
Save