neue Platforms
@@ -25,7 +25,7 @@ public class BreakingPlattform extends Plattform
|
||||
{
|
||||
IsBreaking= true;
|
||||
//Greenfoot.playSound("...")
|
||||
this.setImage("BreakingPlattform2.png");
|
||||
this.setImage("Breaking2.png");
|
||||
|
||||
}
|
||||
if(IsBreaking)
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
#BlueJ class context
|
||||
comment0.target=Enemy
|
||||
comment1.params=targetX\ targetY
|
||||
comment1.target=Enemy(int,\ int)
|
||||
comment1.params=
|
||||
comment1.target=void\ act()
|
||||
comment2.params=
|
||||
comment2.target=void\ act()
|
||||
comment3.params=targetX\ targetY
|
||||
comment3.target=void\ moveToTargetLocation(int,\ int)
|
||||
comment4.params=
|
||||
comment4.target=void\ shootAtPlayer()
|
||||
numComments=5
|
||||
comment2.target=void\ shootAtPlayer()
|
||||
numComments=3
|
||||
|
||||
@@ -30,7 +30,7 @@ public class UnactiveSpike extends Actor
|
||||
MyWorld theWorld= (MyWorld) this.getWorld();
|
||||
Spike BeispielSpike=new Spike(1);
|
||||
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;
|
||||
}
|
||||
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 |