Sure, I'm just building it now


import greenfoot.*; import java.awt.Color; /** * Write a description of class GameOver here. * * @author (your name) * @version (a version number or a date) */ public class GameOver extends World { static GreenfootSound laugh = null; static { laugh = new GreenfootSound("gameOverLaugh.mp3"); } Counter counter = null; /** * Constructor for objects of class GameOver. * */ public GameOver(Counter counter) { // Create a new world with 600x400 cells with a cell size of 1x1 pixels. super(800, 600, 1); prepare (); Background.music.stop(); Survivor.machinegun.stop(); turretBase.turret.stop(); this.counter = counter; } public void act() { if( !laugh.isPlaying()) { laugh.setVolume(50); laugh.playLoop(); } } public Counter getCounter() { return counter; } /** * Prepare the world for the start of the program. That is: create the initial * objects and add them to the world. */ private void prepare() { System.out.println("Counter object is null: "+(counter == null)); TryAgain tryagain = new TryAgain(); addObject(tryagain, 681, 551); laughingSkull laughingskull = new laughingSkull(); addObject(laughingskull, 683, 119); addObject(counter, 462, 575); counter.setLocation(454, 568); } }