Fix Health

This commit is contained in:
2026-09-17 09:24:04 +02:00
parent f7f611c2ae
commit c719e5b053
13 changed files with 102 additions and 67 deletions
+6
View File
@@ -58,6 +58,8 @@ public class MyWorld extends World
plattform2.setLocation(308,382);
Healthbar healthbar = new Healthbar();
addObject(healthbar,50,50);
addObject(new TemporaryGround(60*50), 200, 575);
}
public void act()
@@ -101,6 +103,10 @@ public class MyWorld extends World
addObject(new SpikedPlattform(100), Greenfoot.getRandomNumber(400), 6); //Nach Links bewegende Plattform
}
if(Greenfoot.getRandomNumber(100000)>=99750)
{
addObject(new Groundflower(), Greenfoot.getRandomNumber(400), 6); //Nach Links bewegende Plattform
}
}
public void projectile(){