Hi,
I need to create a leaderboard for my game. It needs to keep the data once the game has been closed so I assume using a text file would be the best solution. It also needs to display the top 10 scores in order with the players name and ideally the date.
I know how to identify the date, I have the score in a variable, and I have the code to ask for the players name, however I am not really sure where to start with the actual leaderboard. I have some knowledge of file handling but not enough to do something this complex.
Can anyone give me some examples or some tips to get me started?
Thanks in advance.
I need to create a leaderboard for my game. It needs to keep the data once the game has been closed so I assume using a text file would be the best solution. It also needs to display the top 10 scores in order with the players name and ideally the date.
I know how to identify the date, I have the score in a variable, and I have the code to ask for the players name, however I am not really sure where to start with the actual leaderboard. I have some knowledge of file handling but not enough to do something this complex.
Can anyone give me some examples or some tips to get me started?
Thanks in advance.