Okay, I'm looking for a way to do a simple startup graphic -- maybe a PNG Title Screen or something that will display until someone clicks or presses SPACE it moves on and runs the game.
public void started() { if (getObjects(null).isEmpty()) { setGameBackground(); // change background prepare(); // add actors } }
getBackground().clear(); getBackground().fill();
getBackground().setColor(java.awt.Color.white);
public MyWorld() { super(640, 480, 1); // use the following or set the image as default for world setBackground(new GreenfootImage("titleScreenImageFilename.jpg")); } public void started() { if (getObjects(null).isEmpty()) { setBackground("road.png"); prepare(); } }