I want to end the game after "Slenderman" subclass is destroyed 20 times. I have no idea where to start, so i would appreciate any help
if (getObjects(Slenderman.class).isEmpty())
{
"lives counter"--;
if ("lives counter" == 0)
{
// end game
}
else
{
// add new slenderman to world
}
}