Crystal Beans From Dungeon Explorer:Map GfxDataPtrs

From Data Crystal
Jump to: navigation, search
Map:GfxDataPtrs
Game Crystal Beans From Dungeon Explorer
Start Address 0x030E79
End Address 0x03123E
# of Entries 46
Entry Length 21
Total Length 966 (0x3C6)
Back to the ROM map

These structures contains the pointers to the information pertaining to the graphical appearance and organization of the level.

Format

Map

24-bits pointer to the compressed map. When decompressed, it contains the block numbers that make up the map BG. It is 256 blocks (bytes) wide.

BlockTilemapData

24-bits pointer to the compressed block tilemap data.

When decompressed, the first 1024 bytes contain an array of 256 array of 4 bytes containing the tile numbers for each block. Byte 0: top-left, byte 1: top-right, byte 2: bottom-left, byte 3: bottom-right.

The next 512 bytes contain an array of 256 arrays of 4 nibbles (2 bytes) containing the palette numbers for each block. Nibble 0: top-left, nibble 1: top-right, nibble 2: bottom-left, nibble 3: bottom-right.

BlockFlags?

24-bits pointer to the compressed block flags. When decompressed, it contains an array of 256 bytes (1 per block).

BgGfx

24-bits pointer to the compressed map background graphics.

Palette

24-bits pointer to the compressed map palette.

Unknown 1

24-bits pointer.

Unknown 2

24-bits pointer. NULL (0) if not used.