Verfolgungsprojektil

This commit is contained in:
2026-09-15 20:55:28 +02:00
parent aae6ac5e41
commit 6127510ec8
4 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ public class MyWorld extends World
int PlattformCountdown;
int timer = 200; //Zeit, bevor das erste Projektil auftaucht
//kann später noch beliebig angepasst werden
int targetTimer = 900;
int targetTimer = 100;
/**
* Constructor for objects of class MyWorld.
*
@@ -96,7 +96,7 @@ public class MyWorld extends World
if(targetTimer == 0){
TargetingProjectile targetingProjectile = new TargetingProjectile();
addObject(targetingProjectile, Greenfoot.getRandomNumber(300)+50,0);
targetTimer = 900;
targetTimer = 100;
}
else{
targetTimer = targetTimer - 1;