public class Explosie extends Actor
{
private int timer = 5;
/**
* Act - do whatever the Explosie wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
getImage () .scale(60,60);
ballonWegNaExplosie();
muurWeg();
eindeSpel();
}
public void eindeSpel()
{
}
public void muurWeg()
{
removeTouching(Muur.class);
}
public void ballonWegNaExplosie()
{
if(timer > 0)
timer--;
else
{
getWorld().removeObject(this);
}
}
}
