Fix Health
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user