Skip to content

Map Sprite Definitions (mapm**.spt)

Robert Crossfield edited this page May 3, 2016 · 7 revisions

Map Sprites

Each sprite consumes 0x0A bytes, and is stored BIG ENDIAN.

Fields

Each field occupies 2 bytes (1 word)

Layout

00 00 01 01 02 02 03 03 04 04

Keys

00: Ignored (Originally was the starting animation, but is forced to 0x7C on load)
01: Ignored
02: Starting X Position
03: Starting Y Position
04: Sprite Type ID

Example

mapm1.spt

00 7C 00 00 00 8B 00 D5 00 00 Player Troop
00 7C 00 00 00 9A 00 DC 00 00 Player Troop
00 7C 00 00 00 51 00 31 00 05 Enemy Troop
00 7C 00 00 00 D4 00 24 00 05 Enemy Troop
00 7C 00 00 00 36 00 46 00 05 Enemy Troop
00 7C 00 00 00 21 00 C3 00 0D Unknown
00 7C 00 00 00 E0 00 C5 00 0E Tree
00 7C 00 00 00 F9 00 92 00 42 Bird