I'm making a game that is very retro themed, and I would like to know how to change the font inside of my score counter to be more consistent with the game. I was thinking of the font "fixedsys."
Any help would be appreciated.
Here's the code for my counter:
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; import java.awt.Font; { int totalScore = 0; public void addedToWorld(World world) { setImage(new GreenfootImage("Score : " + 0, 27, Color.YELLOW, Color.BLACK)); } public void bumpCount(int amount) { totalScore += amount; setImage(new GreenfootImage("Score : " + totalScore, 27, Color.YELLOW, Color.BLACK)); } public void addScore() { totalScore++; } }