Hello,
I'm trying to adjust the color and font of the string on the World.
Here is what I've got so far.
Tanks
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
/**
* Write a description of class Crab here.
*
* @author (-----)
* @version (a version number or a date)
*/
public class Crab extends World
{
public Crab()
// Create a new world with 400x400 cells with a cell size of 1x1 pixels.
public void gameOver()
{
getBackground().drawString("Game Over", getWidth() / 2 , getHeight() / 2);
Greenfoot.stop();
}
}