From eb3829c966f34abeb26d909462269ed4238f3964 Mon Sep 17 00:00:00 2001 From: Lenz Date: Mon, 11 May 2020 23:02:03 +0200 Subject: [PATCH] =?UTF-8?q?was=20unn=C3=B6tiges=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/Player.class | Bin 3670 -> 3510 bytes src/Player.java | 4 ---- 2 files changed, 4 deletions(-) diff --git a/bin/Player.class b/bin/Player.class index 6ac2e33b5300f3b6e9ab8e3751ad0f70f035beb2..f9425e24af9d9a0dc5be19e37b6ee1494e181cd2 100644 GIT binary patch delta 386 zcmY+9IZFd!5QZN&yJ3w67lK0AuUHTT10Em8VwTvp4h&{R>$93~obQkX=$mC>aPu~u2zJ&R|?-eloBt$fhV cCpKRVKvf5-I#A(b)p$BuTZ^#Pg{`si1L{vz)c^nh delta 547 zcmZvYODM!q6o7LbYo3 zOq(C$tw4`X9Ct0|o(1aC)+h;}+6?mnlGCc!aLA2nn{IAe$FV|RINM-oiF8TI0;GJ3 zZ9m2Jf5oD7_=6U6@0Ueo#KIeDbB3wX=KRN_{FleKSO)qn7Kqay)CA=*TGAyJk|6Pr zD2_{8sS+ZJS)?f!#o|D M_*h}h2wQ{y14Ipqg#Z8m diff --git a/src/Player.java b/src/Player.java index 070c567..2509589 100644 --- a/src/Player.java +++ b/src/Player.java @@ -216,19 +216,15 @@ public class Player extends Picture implements KeyListener { // extends Picture if (coordinate == 'x') { // Auslesen der 'x' - Koordinate: if (left && dt != 0) { xPos -= speed * dt; - System.out.println(speed * dt); } else if (right && dt != 0) { xPos += speed * dt; - System.out.println(speed * dt); } return (int) xPos; } else if (coordinate == 'y') { // Auslesen der 'y' - Koordinate: if (down && dt != 0) { yPos += speed * dt; - System.out.println(speed * dt); } else if (up && dt != 0) { yPos -= speed * dt; - System.out.println(speed * dt); } return (int) yPos; } else {