giant_toad_tilemap library

Sparse tilemap document, editing, rendering, area, and collision APIs.

Classes

GiantToadAreaChange
Enter/exit delta produced by GiantToadAreaTracker.
GiantToadAreaDocument
An optional sparse-map areas.json document.
GiantToadAreaDocumentCodec
Decodes and encodes the JSON text stored in an areas.json file.
GiantToadAreaTracker
Tracks authored areas occupied by one cell-space subject.
GiantToadAtlasTileRenderer
Nearest-neighbor atlas renderer usable as a GiantToadTileRenderer.
GiantToadAutotile
Bitmask generation for bitmask16 and gated eight-neighbour blob rules.
GiantToadAutotileRules
Resolves autotile masks into authored tile ids.
GiantToadChunkKey
A stable coordinate key for a sparse tile chunk.
GiantToadCollisionWorld
Sparse broadphase-independent rectangle world for small authored collision sets. Entity-to-entity hitboxes remain Flame collision components.
GiantToadGrid
Reusable integer grid math for sparse tilemaps.
GiantToadMapArea
A named cell-space rectangle stored in an optional areas.json document.
GiantToadMapCellChange
One reversible cell replacement in a sparse map layer.
GiantToadMapDocument
The canonical representation of a sparse map.json file.
GiantToadMapDocumentCodec
Decodes and encodes the JSON text stored in a map.json file.
GiantToadMapEdit
A committed, reversible batch of sparse cell changes.
GiantToadMapEditTransaction
Collects an efficient, atomic edit while a paint stroke is in progress.
GiantToadMapLayer
One sparse, row-major tile layer from a map.json document.
GiantToadMapObject
A typed object placed in a sparse map.
GiantToadMapObjectFactories<T extends Object>
Typed object-spawn registry. Register Flame component factories in game bootstrap code rather than switching on object types inside render loops.
GiantToadMapTraversalMetrics
Mutable counters populated by a bounded sparse-layer traversal.
GiantToadMovingPlatform
A deterministic kinematic platform. Give platforms a lower priority than bodies so their frameDelta is ready before character updates.
GiantToadPixelBody
Kinematic Flame component using tile-grid movement while retaining a normal Flame hitbox for entity-to-entity collision callbacks.
GiantToadRaycastHit
GiantToadTileAnimation
A deterministic looping tile animation.
GiantToadTileAnimationFrame
One timed frame in an animated tile definition.
GiantToadTileCell
Typed interpretation of a legacy numeric or rich tile cell.
GiantToadTileCollision
Collision queries against one sparse solid tile layer.
GiantToadTilemapComponent
A Flame component that renders the visible layers of a sparse map.
GiantToadTilemapRenderMetrics
GiantToadTileMoveResult
Result of one tile-grid move-and-slide operation.
GiantToadTileset
A tileset image laid out as a regular pixel grid.
GiantToadWorldCollider
GiantToadWorldHit
GiantToadWorldMoveResult

Enums

GiantToadTileMaterial
Collision behavior authored on a tile cell.

Typedefs

GiantToadEditedChunk = ({GiantToadChunkKey chunk, String layerId})
GiantToadMapCell = Object?
The JSON-compatible scalar, list, or object stored in a map cell.
GiantToadTileRenderer = void Function(Canvas canvas, GiantToadMapCell? cell, int tileX, int tileY, int tileSize)
Draws one authored map cell at its integer tile coordinates.