diff --git a/src/main/java/pacmanGame/Player.java b/src/main/java/pacmanGame/Player.java index c8c2e48..fb8c3f0 100644 --- a/src/main/java/pacmanGame/Player.java +++ b/src/main/java/pacmanGame/Player.java @@ -11,6 +11,11 @@ public class Player { this.direction = new Vector2(0,-1); } + public void Spawn() { + position = gameManager.map.playerSpawn; + direction = new Vector2(0, -1); + } + public void Move() { Vector2 newPosition = position.Add(direction);