I am creating a game where if the "Rocket" touches the "Mine" the game ends .
Here's what I've got already,
But I need a code when on collision with "Mine" class , the Rocket dissapears and the game stops or ends.
Please help.
Thanks
public void act() { if (Greenfoot.isKeyDown("up")) move(3); if (Greenfoot.isKeyDown("down")) move(-3); if (Greenfoot.isKeyDown("right")) turn(3); if (Greenfoot.isKeyDown("left")) turn(-3); }