So, I would like to make a project that has a seal that goes around eating fish. I started the seal by declaring a public variable...The reason it was public instead of private was that I have another class file that will show a message saying how many points you have. What I was mainly wondering was what would be the code for that?
Here's the code for the the scoreboard so far (labeled pointholder)
public int points;
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
/**
* This class shows your points
*/
public class PointHolder extends Actor
{
public PointHolder()
{
}
}
