Browse Source

Added Keyboard Input routing to forward Input from Program to GameManager

remotes/origin/menu
fdai7012 1 year ago
committed by Julian
parent
commit
5f191f6ecf
  1. 5
      src/main/java/pacmanGame/Program.java

5
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());

Loading…
Cancel
Save