+Flower Png

This commit is contained in:
2026-09-17 11:10:46 +02:00
parent 5cf095c370
commit aa07effa13
9 changed files with 89 additions and 87 deletions
+3 -3
View File
@@ -40,10 +40,10 @@ public class Plattform extends Actor
public boolean PlayerOnPlattform()
{
Player Spieler= (Player) getOneIntersectingObject(Player.class);
if(this.isTouching(Player.class))
Player Spieler= (Player) this.getWorld().getObjects(Player.class).get(0);
if(Spieler.getX()+(Spieler.getImage().getWidth()/2)>=this.getX()-(this.getImage().getWidth()/2) && Spieler.getX()-(Spieler.getImage().getWidth()/2)<=this.getX()+(this.getImage().getWidth()/2))
{
if(Spieler.getY()<this.getY()-39)
if(Spieler.getY()+(Spieler.getImage().getHeight()/2)<=this.getY()-(this.getImage().getHeight()/2) && Spieler.getY()+(Spieler.getImage().getHeight()/2)>=this.getY()-(this.getImage().getHeight()/2))
{
return true;
}