SpikedPlattforms3

This commit is contained in:
2026-09-16 11:59:02 +02:00
parent cdcb5a5bac
commit 51725cd2b8
3 changed files with 136 additions and 52 deletions
+5 -1
View File
@@ -59,7 +59,7 @@ public class MyWorld extends World
if(PlattformCountdown==0) //Damit in regelmäßigen Abständen auf jeden Fall eine Plattform auftaucht
{
addObject(new Plattform(), Greenfoot.getRandomNumber(400), 5);
PlattformCountdown=100;
PlattformCountdown=50;
}
PlattformCountdown--;
if(Greenfoot.getRandomNumber(100000)>=99800)
@@ -78,6 +78,10 @@ public class MyWorld extends World
{
addObject(new BreakingPlattform(50), Greenfoot.getRandomNumber(400), 6); //Nach Links bewegende Plattform
}
if(Greenfoot.getRandomNumber(100000)>=99750)
{
addObject(new SpikedPlattform(100), Greenfoot.getRandomNumber(400), 6); //Nach Links bewegende Plattform
}
}