Skip to content

High Score Design

EthanCollins02 edited this page Apr 12, 2022 · 8 revisions

The file format for saving high scores is a binary file. Each HighScore is saved with the score first, followed immediately by the name associated with the score. The Scores are stored in ascending order. This enables for easy access to the lowest score, as you will only need to read the first Integer and nothing else to determine if a given score qualifies to be ranked. There will always be only 5 scores stored at any given time. An example of this represented in a readable format can be seen below:

  • 1000First
  • 2000Second
  • 3000Third
  • 4000Fourth
  • 5000Fifth

The classes can be found below:

Clone this wiki locally