This site requires JavaScript, please enable it in your browser!
Greenfoot back
LegendMan55
LegendMan55 wrote ...

2015/12/28

ScoreBoard class

LegendMan55 LegendMan55

2015/12/28

#
What is the code for create ScoreBoard best score are in top
danpost danpost

2015/12/28

#
LegendMan55 wrote...
What is the code for create ScoreBoard best score are in top
There is a ScoreBoard class that is importable. With the menubar, select "Edit>Import class..." to access it and add it into your project. Then you can look at its code to see what it is. If you were wanting to know how to create a ScoreBoard object:
// in World subclass
ScoreBoard scoreboard = new ScoreBoard(getWidth(), getHeight());

// in Actor subclass
ScoreBoard scoreboard = new ScoreBoard(getWorld().getWidth(), getWorld().getHeight());
Follow it with adding it into the middle of the world.
You need to login to post a reply.