Items werden automatisch erzeugt

This commit is contained in:
2026-09-17 11:11:22 +02:00
parent 6ab5576115
commit 97c8d5641e
10 changed files with 98 additions and 72 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ public class Player extends Actor
java.util.List<Plattform> platforms = getIntersectingObjects(Plattform.class);
boolean landed = false;
for (Plattform platform : platforms) {
int groundTop = platform.getY()+5 - platform.getImage().getHeight() / 2;
int groundTop = platform.getY() - platform.getImage().getHeight() / 2;
int characterBottom = getY() + getImage().getHeight() / 2;
int oldCharacterBottom = oldY + getImage().getHeight() / 2;
// Prüfen, ob der Spieler von oben auf diese Plattform fällt