Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.
The wiki has recently moved; please report any issues in Discord. Pardon the dust.
Star Fox/ROM map: Difference between revisions
< Star Fox
Jump to navigation
Jump to search
Bluephoenix (talk | contribs) No edit summary |
Bluephoenix (talk | contribs) No edit summary |
||
Line 40: | Line 40: | ||
== Notes == | == Notes == | ||
Dialog text has prefix of two bytes and <code>0E</code>, and is null-terminated. The first byte is the character that speaks | Dialog text has prefix of two bytes and <code>0E</code>, 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. For example: | ||
<pre> | <pre> | ||
82 02 0E 72 6F 6C 6C 2C 20 66 6F 78 .... 6E 20 72 6F 6C 6C 2C 00 | 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 | |||
</pre> | </pre> | ||
The | The text position nibble can be either <code>0</code> or <code>8</code>. <code>0</code> vertically aligns the text with the middle of the character picture, and <code>8</code> aligns the text to its top. | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ Effect of position nibble | ||
! <code>0</code> | |||
! <code>8</code> | |||
|- | |||
|<pre> +-------+ | |||
| FALCO | ROLL, FOX!! | |||
+-------+ ROCK'N ROLL!!</pre> | |||
|<pre> +-------+ ROLL, FOX!! | |||
| FALCO | ROCK'N ROLL!! | |||
+-------+</pre> | |||
|- | |||
|} | |||
{| class="wikitable" | |||
|+ Characters | |||
!style="text-align:left;" | Nibble | !style="text-align:left;" | Nibble | ||
!style="text-align:left;" | Character | !style="text-align:left;" | Character |
Revision as of 06:01, 4 November 2017
Start | End | Description |
---|---|---|
... | ||
001090
|
001340
|
bitmap font, 2bpp planer (unused) |
... | ||
00D996
|
00E6B5
|
bitmap font, 2bpp linear |
... | ||
00F7DB
|
00FBD8
|
dialog text |
00FBD9
|
00FCF4
|
dialog text pointer table |
... | ||
090000
|
0A031F
|
tileset, 8bpp linear |
... |
Notes
Dialog text 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. For 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.
0
|
8
|
---|---|
+-------+ | FALCO | ROLL, FOX!! +-------+ ROCK'N ROLL!! |
+-------+ ROLL, FOX!! | FALCO | ROCK'N ROLL!! +-------+ |
Nibble | Character |
---|---|
0
|
Fox |
1
|
Peppy |
2
|
Falco |
3
|
Slippy |
4
|
Pepper |
5
|
Andross |
Color obviously depends on the palette.
Text is mostly ASCII. #
is used as a period.