From 5c7f5879d14bfd9d1c792cec20bcfc686ba56647 Mon Sep 17 00:00:00 2001 From: fdai7753 Date: Wed, 31 Jan 2024 19:38:09 +0100 Subject: [PATCH] refactoring: Fixed uninitialized player coordinate --- src/main/java/pacmanGame/Player.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/pacmanGame/Player.java b/src/main/java/pacmanGame/Player.java index ae012b9..72c0ac1 100644 --- a/src/main/java/pacmanGame/Player.java +++ b/src/main/java/pacmanGame/Player.java @@ -7,6 +7,7 @@ public class Player { public Player(GameManager gameManager) { this.gameManager = gameManager; + this.position = new Vector2(2,2); } public void Move() {