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§
- Collision
Cell - Per-cell collision descriptor. May differ from the metatile’s visual bounds when, for example, only the bottom row of the metatile is solid.
- Metatile
Cell - 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.
- Metatile
Def - A metatile — a logical unit comprised of N×N tiles.
- Metatile
Registry - Registry of all metatile definitions for a tileset.
- Trigger
Def - A trigger definition bound to a metatile.
Enums§
- Trigger
Type - When a trigger associated with a metatile fires.