diff --git a/src/main/java/pacmanGame/GameManager.java b/src/main/java/pacmanGame/GameManager.java index d269424..2d5ae52 100644 --- a/src/main/java/pacmanGame/GameManager.java +++ b/src/main/java/pacmanGame/GameManager.java @@ -13,7 +13,7 @@ public class GameManager { } public void setupGame(){ - map = new Map(); + map = new Map(Map.mapClassic); visualizer = new VisualizerPlainText(this); player = new Player(this); player.Spawn(); diff --git a/src/main/java/pacmanGame/Map.java b/src/main/java/pacmanGame/Map.java index 8e9371f..7f5e7d4 100644 --- a/src/main/java/pacmanGame/Map.java +++ b/src/main/java/pacmanGame/Map.java @@ -3,7 +3,8 @@ package pacmanGame; import java.util.HashMap; public class Map { - public final String[] mapClassic = { + + public static String[] mapClassic = { "wwwwwwwwwwwwwwwwwwwwwwwwwwwwww", "wwwwwwwwwwwwwwwwwwwwwwwwwwwwww", "ww............ww............ww", @@ -52,10 +53,6 @@ public class Map { public Vector2 playerSpawn = new Vector2(2,2); public char playerSpawnChar = 's'; - public Map() { - GenerateMap(mapClassic); - } - public Map(String[] mapData) { GenerateMap(mapData); }