GreenfootImage bg = getBackground();
bg.setColor(Color.white); -- THIS ONE
bg.fillRect(684, 15, 100, 30);
bg.setColor(Color.black); -- THIS ONE
bg.setFont(new Font("SERIF", Font.BOLD, 28));
bg.setColor(Color.black); -- THIS ONE
bg.drawString(""+score, 684, 40);
}
private void setAction(int action)
{
removeObjects(getObjects(Chaser.class)); // remove old chasers
actionType = action%5; // set bound action
int[] distances = { 0, 0, -10, 0, -15 }; // bound ranges
actionDistance = distances[actionType]; // the range for this action
String[] texts = { "UNBOUND", "LIMIT", "REMOVAL", "WRAPPING", "BOUNCE" }; // the bounds text
// adjust bounds display
GreenfootImage bg = getBackground();
bg.setFont(new Font("SERIF", Font.BOLD, 36));
bg.setColor(Color.black); -- THIS ONE
bg.fillRect(350, 0, 200, 50);
bg.setColor(Color.gray); -- THIS ONE
bg.drawString(texts[actionType], 350, 44);
// reset score
score = 0;
// ensure player is in world

