What I want to happen is that every time a bomb hits this area, the game just stops and restarts. While the game stopping action works, it's not as it should. It's stopping all the time, and my game is unplayable due to that.
Is there anything I'm doing wrong?
private void checkGameEnd()
{
if (bombBoom(!true))
{
}
else
{
Greenfoot.stop();
}
}
