Class ScoreBoard
- java.lang.Object
-
- greenfoot.Actor
-
- ScoreBoard
-
public class ScoreBoard extends greenfoot.Actor
An actor class that can display a scoreboard, using Greenfoot's UserInfo class. You typically use this by including some code into the world for when your game ends:addObject(new ScoreBoard(800, 600), getWidth() / 2, getHeight() / 2);
Where 800 by 600 should be replaced by the desired size of the score board.- Version:
- 1.0
- Author:
- Neil Brown
-
-
Constructor Summary
Constructors Constructor Description ScoreBoard(int width, int height)
Constructor for objects of class ScoreBoard.
-
Method Summary
-
Methods inherited from class greenfoot.Actor
act, addedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWorld, getWorldOfType, getX, getY, intersects, isAtEdge, isTouching, move, removeTouching, setImage, setImage, setLocation, setRotation, turn, turnTowards
-
-