From e345d13140637f10379b4fd2f39b8bf1de727f7b Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 15 Sep 2026 19:23:58 +0200 Subject: [PATCH] Player kann jetzt auf Platformen stehen (nicht mehr auf Ground) --- SMIMS-Game/Player.class | Bin 2752 -> 2755 bytes SMIMS-Game/Player.ctxt | 6 ------ SMIMS-Game/Player.java | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/SMIMS-Game/Player.class b/SMIMS-Game/Player.class index 5090825a78a5c4ba0988fabf9e206a895f69b9b3..17d46e2de5600545b29d11c4695bb249df9aa1f3 100644 GIT binary patch delta 23 ecmX>gdRTOW0}~f#Ku%&wNm_nU?q+wUN)7;F;s@yf delta 20 bcmX>sdO&o80~0%&dr^LAUdm=Krb-R~NmK@$ diff --git a/SMIMS-Game/Player.ctxt b/SMIMS-Game/Player.ctxt index 3cb5fcb..5208ed6 100644 --- a/SMIMS-Game/Player.ctxt +++ b/SMIMS-Game/Player.ctxt @@ -16,9 +16,3 @@ comment6.target=void\ handlePowerUps() comment7.params=duration\ type comment7.target=void\ reveivePowerUp(int,\ java.lang.String) numComments=8 -comment3.target=void\ jump() -comment4.params= -comment4.target=void\ fall() -comment5.params= -comment5.target=boolean\ collision() -numComments=6 diff --git a/SMIMS-Game/Player.java b/SMIMS-Game/Player.java index 2abc718..8f3d948 100644 --- a/SMIMS-Game/Player.java +++ b/SMIMS-Game/Player.java @@ -64,7 +64,7 @@ public class Player extends Actor setLocation(getX(), newY); - Actor ground = getOneIntersectingObject(Ground.class); + Actor ground = getOneIntersectingObject(Plattform.class); if (ground != null && verticalSpeed >= 0) {