From 34c9b4f459ed0f1cf3ebfae0c9b1b4f92cfb4782 Mon Sep 17 00:00:00 2001 From: Oscar Wiberg <oscarwiberg@Oscars-MacBook-Air-4.local> Date: Mon, 27 Jan 2025 18:34:28 +0100 Subject: [PATCH] =?UTF-8?q?speedpowerup=20bug=20fixad=20genom=20att=C3=A4n?= =?UTF-8?q?dra=20=3D=3D=20till=20>=3D=20i=20player=20jump,=20samt=20lade?= =?UTF-8?q?=20till=20=3D=20265=20f=C3=B6r=20att=20=C3=A5terst=C3=A4lla=20p?= =?UTF-8?q?layer=20y=20position?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/states/Player.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/states/Player.java b/src/states/Player.java index 4f0c845..66bfcc1 100644 --- a/src/states/Player.java +++ b/src/states/Player.java @@ -108,7 +108,8 @@ public class Player { playerY += movingSpeed; - if (playerY == 265) { + if (playerY >= 265) { + playerY = 265; down = false; } -- GitLab