diff --git a/src/main/java/pacmanGame/Player.java b/src/main/java/pacmanGame/Player.java index c622521..e178978 100644 --- a/src/main/java/pacmanGame/Player.java +++ b/src/main/java/pacmanGame/Player.java @@ -32,8 +32,10 @@ public class Player { } public void processInput(char inputchar) { - - if(inputchar == 'w') { + if(inputchar == 'p') { + checkInput(new Vector2(0,0)); + } + else if(inputchar == 'w') { checkInput(new Vector2(0,1)); }