Skip to main content

Module metatile

Module metatile 

Source
Expand description

§metatile

Defines MetatileDef and MetatileRegistry — the JRPG engine generalization of the Game Boy “block” concept. A metatile is a logical unit comprised of N×N tiles (2×2, 3×3, 4×4, …) that carries collision, trigger, animation and z-offset metadata. The module also provides a converter from the original Game Boy .bst block format (16-byte blocks, 4×4 tiles).

Structs§

CollisionCell
Per-cell collision descriptor. May differ from the metatile’s visual bounds when, for example, only the bottom row of the metatile is solid.
MetatileCell
One tile cell within a metatile. Beyond the basic tile index, this carries optional flip flags and a palette bank selector that are commonly needed by tilemap renderers.
MetatileDef
A metatile — a logical unit comprised of N×N tiles.
MetatileRegistry
Registry of all metatile definitions for a tileset.
TriggerDef
A trigger definition bound to a metatile.

Enums§

TriggerType
When a trigger associated with a metatile fires.