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.

Crystal Beans from Dungeon Explorer/Map Structs

From Data Crystal
Jump to navigation Jump to search

This is a sub-page of Crystal Beans from Dungeon Explorer.

Map
Game Crystal Beans From Dungeon Explorer
Start Address 0x02EEBB
End Address 0x030E78
# of Entries 478
Entry Length 17
Total Length 8126 (0x1FBE)
Back to the ROM map

These structures describe the location of the graphics pointers, the objects to be loaded and the room location within the full level map.

Format

GfxDataPtrs*

24-bits pointer to the Map:GfxDataPtrs for the level containing the room.

BoundLeft

The left bound of the room with the level map.

BoundRight

The right bound of the room with the level map. Add 16 (2/3 of viewport width) to get full bound.

BoundTop

The top bound of the room with the level map.

BoundBottom

The bottom bound of the room with the level map. Add 11 (2/3 of viewport height) to get full bound.

ObjDefs*

24-bits pointer to the the object definitions for the objects appearing in the room.

ObjTypes*

24-bits pointer to 2 consecutive arrays of bytes terminated by 0xFF. The first gives the type for the hostile objects, the second one, the type of friendly objects. Mainly used to load the objects graphics and palettes.

Unknown 1

Unknown 2