neue Platforms

This commit is contained in:
2026-09-16 17:45:04 +02:00
parent fe11e83e78
commit 1ed7e0ce1f
13 changed files with 6 additions and 10 deletions
Binary file not shown.
+1 -1
View File
@@ -25,7 +25,7 @@ public class BreakingPlattform extends Plattform
{ {
IsBreaking= true; IsBreaking= true;
//Greenfoot.playSound("...") //Greenfoot.playSound("...")
this.setImage("BreakingPlattform2.png"); this.setImage("Breaking2.png");
} }
if(IsBreaking) if(IsBreaking)
+4 -8
View File
@@ -1,11 +1,7 @@
#BlueJ class context #BlueJ class context
comment0.target=Enemy comment0.target=Enemy
comment1.params=targetX\ targetY comment1.params=
comment1.target=Enemy(int,\ int) comment1.target=void\ act()
comment2.params= comment2.params=
comment2.target=void\ act() comment2.target=void\ shootAtPlayer()
comment3.params=targetX\ targetY numComments=3
comment3.target=void\ moveToTargetLocation(int,\ int)
comment4.params=
comment4.target=void\ shootAtPlayer()
numComments=5
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -30,7 +30,7 @@ public class UnactiveSpike extends Actor
MyWorld theWorld= (MyWorld) this.getWorld(); MyWorld theWorld= (MyWorld) this.getWorld();
Spike BeispielSpike=new Spike(1); Spike BeispielSpike=new Spike(1);
GreenfootImage SpikeImage= BeispielSpike.getImage(); GreenfootImage SpikeImage= BeispielSpike.getImage();
theWorld.addObject(new Spike(speed), this.getX(), (this.getY()- this.getImage().getHeight()/2)-10); //die Zahl Minus damit ist endlich passt theWorld.addObject(new Spike(speed), this.getX(), (this.getY()- this.getImage().getHeight()/2)-2); //die Zahl Minus damit ist endlich passt
geloescht=true; geloescht=true;
} }
if(geloescht) if(geloescht)
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B