From 1f49220723d039c8763dd032ff1c973bb0a97e44 Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Thu, 8 Feb 2024 02:08:51 +0100 Subject: [PATCH] =?UTF-8?q?added=20the=20pause=20touch=20in=20the=20Gamemo?= =?UTF-8?q?ve=C2=B4s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/pacmanGame/Player.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)); }