Custom Player Movement Package Documentation

Overview

End Game Screen is a basic end screen for the Top of The Class video game.


Key Features

  • Customizable End Screen Text: This allows you to change the end screen text for the different subjects in the game.

Getting Started

1. Initializing the Variables

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-");

2. Setting the amount of players

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)

3. Displaying the end screen.

To display the end screen:

showEndScreen();

4. Checking Movement Completion

Use the MovementComplete function to determine if the movement is finished:

if (movementController.MovementComplete()) {
    // Movement has completed
}

Conclusion

End Game Screen is a simple package to display an endgame screen for TOTC.