End Game Screen is a basic end screen for the Top of The Class video game.
- Customizable End Screen Text: This allows you to change the end screen text for the different subjects in the game.
To set up the end screen for the game to provide the info you wish to display.
public void setPlayerStats(string t_name, int t_place, string t_General_Knowledge_Result, string t_English_Result, string t_Math_Result, string t_Science_Result, string t_Geography_Result, string t_History_Result)
setPlayerStats("Alan", 1, "A+", "B", "F", "C", "B+", "A-");
Setting the amount of players before displaying the end screen is important as only the amount set will be displayed. Max 4 players.
int playerAmount = 3;
setPlayerAmount(playerAmount)
To display the end screen:
showEndScreen();
Use the MovementComplete
function to determine if the movement is finished:
if (movementController.MovementComplete()) {
// Movement has completed
}
End Game Screen is a simple package to display an endgame screen for TOTC.