Star Fox/Notes

From Data Crystal
< Star Fox
Revision as of 06:50, 18 November 2017 by Bluephoenix (talk | contribs) (Created page with "In-game text (ROM address <code>00F7DB</code>-<code>00FBD8</code>) has prefix of two bytes and <code>0E</code>, and is null-terminated. The first byte is the text position and...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In-game text (ROM address 00F7DB-00FBD8) has prefix of two bytes and 0E, and is null-terminated. The first byte is the text position and character that speaks. The second byte is the color index for the text.

Example:

82 02 0E 72   6F 6C 6C 2C   20 66 6F 78  ....  6E 20 72 6F   6C 6C 2C 00
^^ \/    ^                                                            ^
||  |    |                                                            |
||  |    start of text                                   null terminator
||  color
|character
|
text position

The text position nibble can be either 0 or 8. 0 vertically aligns the text with the middle of the character picture, and 8 aligns the text to its top.

Effect of position nibble
0 8
 +-------+
 | FALCO | ROLL, FOX!!
 +-------+ ROCK'N ROLL!!
 +-------+ ROLL, FOX!!
 | FALCO | ROCK'N ROLL!!
 +-------+
Characters
Nibble Character
0 Fox
1 Peppy
2 Falco
3 Slippy
4 Pepper
5 Andross