neue Platforms
@@ -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)
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 329 B |
|
After Width: | Height: | Size: 578 B |