This site requires JavaScript, please enable it in your browser!
Greenfoot back
jesper2411
jesper2411 wrote ...

2014/5/14

Test 3

jesper2411 jesper2411

2014/5/14

#
public void endGame()
    {
        if (getOneIntersectingObject(Obstacle.class) != null)
        {
            World world = getWorld();
            Greenfoot.playSound("gameover.wav");
            getWorld().removeObject(this);  
            //gameOver();
            world.removeObjects(world.getObjects(null));
            world.setBackground("Gameover.png");  
            Greenfoot.stop(); 
        }
    }
GRIFFIN GRIFFIN

2014/5/15

#
Wonderfull
You need to login to post a reply.