working on a brick breaker game for class but I can't figure out how to add more hits to the brick pls help asap
int health = 2;
/**
* Act - do whatever the SuperBrick wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
loseHealth();
broken();
}
public void loseHealth()
{
Actor Ball = getOneIntersectingObject(Ball.class);
if(Ball !=null)
{
health = health - 1;
}
}
public void broken()
{
if(health == 1)
{
getWorld().removeObject(this);
}
}

