OK ive asked this question about 3 times how can i make my scoreboard appear at the end of my game?


public Scoreboard scoreboard = new Scoreboard();
GameWorld gw = (GameWorld) getWorld(); Scoreboard scoreboard = new Scoreboard(); gw.addObject(scoreboard, xLocation, yLocation); Greenfoot.stop();
if (conditionsAreMet == true) { // game over code here }
public boolean isGameOver() { if (condition1 != true) return false; if (condition2 != true) return false; // etc. if (conditionN != true) return false; return true; }
if (isGameOver())
if (seeLobster())
public boolean seeLobster() { return (getOneIntersectingObject(Lobster.class) != null); }