Browse Source

new fonction Spawn() spowne the player to the next step

remotes/origin/menu
fdai2751 11 months ago
parent
commit
26f19749ef
  1. 1
      src/main/java/pacmanGame/GameManager.java

1
src/main/java/pacmanGame/GameManager.java

@ -15,6 +15,7 @@ public class GameManager {
map = new Map(); map = new Map();
visualizer = new VisualizerPlainText(this); visualizer = new VisualizerPlainText(this);
player = new Player(this); player = new Player(this);
player.Spawn();
ghosts = new Ghost[4]; ghosts = new Ghost[4];
for(int i = 0; i < ghosts.length; i++) { for(int i = 0; i < ghosts.length; i++) {
ghosts[i] = new Ghost(this); ghosts[i] = new Ghost(this);

Loading…
Cancel
Save