Textures und BreakingPlatform Änderung

This commit is contained in:
2026-09-17 11:11:14 +02:00
parent f1bb70a2a2
commit 964725a81c
16 changed files with 77 additions and 118 deletions
+2 -4
View File
@@ -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;