public class Counter extends Actor
{
int points=0;
public void act()
{
text();
}
public void text()
{
setImage(new GreenfootImage("Score:"+ points,35,Color.GREEN,Color.BLACK));
}
public void addPoints()
{
points++;
}
}

