diff --git a/src/main/java/pacmanGame/Program.java b/src/main/java/pacmanGame/Program.java index cf62472..6352548 100644 --- a/src/main/java/pacmanGame/Program.java +++ b/src/main/java/pacmanGame/Program.java @@ -29,6 +29,11 @@ public class Program { boolean running = true; while(running) { + for (char inputChar : input.inputList) { + gameManager.ProcessInput(inputChar); + } + input.inputList.clear(); + gameManager.Update(); textArea.setText((String)gameManager.visualizer.GetOutput());