Textures und BreakingPlatform Änderung
This commit is contained in:
@@ -9,7 +9,7 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
|
||||
public class MyWorld extends World
|
||||
{
|
||||
int PlattformCountdown;
|
||||
int timer = 300; //Zeit, bevor das erste Projektil auftaucht
|
||||
int timer = 600; //Zeit, bevor das erste Projektil auftaucht
|
||||
//kann später noch beliebig angepasst werden
|
||||
int targetTimer = 1000;
|
||||
int time = 0;
|
||||
@@ -57,8 +57,6 @@ public class MyWorld extends World
|
||||
plattform2.setLocation(320,367);
|
||||
plattform2.setLocation(312,371);
|
||||
plattform2.setLocation(308,382);
|
||||
Healthbar healthbar = new Healthbar();
|
||||
addObject(healthbar,50,50);
|
||||
Heart heart = new Heart();
|
||||
addObject(heart,371,27);
|
||||
Heart heart2 = new Heart();
|
||||
@@ -131,7 +129,7 @@ public class MyWorld extends World
|
||||
if(timer == 0){
|
||||
Projectile projectile = new Projectile();
|
||||
addObject(projectile,Greenfoot.getRandomNumber(300)+50,0);
|
||||
timer = 300; //zeitlicher Abstand
|
||||
timer = 600; //zeitlicher Abstand
|
||||
}
|
||||
else{
|
||||
timer = timer - 1;
|
||||
|
||||
Reference in New Issue
Block a user