High scores

From Wiki of ZZT
Revision as of 10:22, 25 December 2025 by RT-55J (talk | contribs)
Jump to navigation Jump to search

File Format

Each high score entry has the following format.

Offset Hex Data type Description
0 0x00 UINT8 NameLength
Length of the name entered for the high score.
1 0x01 char[50] Name
Name associated with the high score. While the format allows 50 characters to be stored, a maximum of 34 characters may be input on the name entry screen. Due to the reserved space when displaying scores, names 37 or more characters will begin to print over the window's border and into the board area. Up to 43 characters will be drawn to the screen this way, with any additional characters remaining completely hidden.
51 0x33 INT16LE High Score
The numeric value of the high score.

This format of NameLength, Name, High Score repeats 30 times, from the highest score to the lowest.