I am having trouble getting my image to appear on my background. I have looked through all the docs and believe that I have the code right however the image won't show up but the problem still runs. Any suggestions? Thanks!
public class Start extends World
{
public Start()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(1080, 599, 1);
GreenfootImage back = getBackground();
back.setColor(Color.BLACK);
back.fill();
Greenfoot.start();
message();
}
public void act()
{
if (Greenfoot.isKeyDown("space")) Greenfoot.setWorld(new MyWorld());
}
private void message()
{
//showText("Directions", 1000, 25);
GreenfootImage directions = new GreenfootImage("directions.png");
directions.drawImage(directions, 300, 300);
}
}
