Skip to main content

Module layout

Module layout 

Source
Expand description

Grid → world-space mapping. The board is centred on the origin; sim y grows downward (row 0 on top) while Bevy’s world y grows upward.

Modules§

z
Z-layers, back to front.

Constants§

TILE

Functions§

creature_pos
World position of a creature progress subunits past the centre of tile, heading in dir.
dir_rotation
Rotation aligning a sprite authored facing +X with a sim direction.
nearest_tile
The tile whose centre is closest to a world position (clamped in-board).
tile_center