Skip to content

Map Definitions (mapm**.map)

Robert Crossfield edited this page Aug 7, 2015 · 4 revisions

#Map Files Maps are stored as BIG ENDIAN, and contain a header.

##Header The header occupies 0x60 bytes, from offset 0x00 to 0x5F.
Beginning at 0x60, is the map tile data. Each tile is 2 bytes (1 word)

###Known Offsets

0x00: Base Sprite/Tile Data Filename (0x0B Bytes)
0x10: Sub Sprite/Tile Data Filename (0x0B Bytes)
0x50: 'CFED' (4 bytes) - Editor Tag?
0x54: Map Width (2 bytes)
0x56: Map Height (2 bytes)

###Example ####mapm1.map 6A 75 6E 62 61 73 65 2E 62 6C 6B 00 01 00 00 00 junbase.blk.....
6A 75 6E 73 75 62 30 2E 62 6C 6B 00 19 00 00 00 junsub0.blk.....
00 00 00 00 1C 1D 00 00 00 00 00 00 00 00 00 01 ................
01 2E 2F 02 23 01 00 02 01 01 00 01 01 00 00 00 ../.#...........
00 00 00 1A 1B 00 00 00 00 00 00 00 1E 1F 00 00 ................
63 66 65 64 00 13 00 0F 00 30 31 02 00 00 01 00 cfed.....01.....

Map is 0x0013 by 0x000F tiles, using junbase.blk and junsub0.blk

Clone this wiki locally