404
edits
(Paths) |
(Paths) |
||
Line 95: | Line 95: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
= | = Paths = | ||
<syntaxhighlight lang="c"> | <syntaxhighlight lang="c"> | ||
struct PathData { | struct PathData { | ||
Line 114: | Line 114: | ||
/* offset 0x00 */ u16 x; // 1 tile = 0x100 | /* offset 0x00 */ u16 x; // 1 tile = 0x100 | ||
/* offset 0x02 */ u16 y; | /* offset 0x02 */ u16 y; | ||
/* offset 0x03 */ u8 delay; // In frames | /* offset 0x03 */ u8 delay; // In frames, after performing the command | ||
/* offset 0x04 */ u8 | /* offset 0x04 */ u8 param; // Command-specific parameter | ||
/* offset 0x06 */ u16 | /* offset 0x06 */ u16 command; | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Commands: | |||
* 0x00: Move to x/y | |||
* 0x10: Turn | |||
* 0x30: Fall asleep | |||
* 0x90/0xb0/0xe0: Show question mark | |||
* 0xa0/0xe0: Go to space | |||
* 0xd0: Start searching | |||
= Unknown block 2 = | = Unknown block 2 = |