My game has player's name, levels, points and lives and they are all global variables. I want to create a high score table based on those information.
Does anyone have example of how to save global variables into array? and how to sort them (if a new high score is lower than top score but higher than the rest of scores) ?
I am not very familiar with arrays.
Attached is a picture of my high score setup (5 slots, in the example, the game is only 3 times played, so 2 are left blank)