draw_layer now samples tile sub-rectangles from the atlas diffuse texture via the ADR-0044 source-rect render primitive (13-arg draw_sprite_transform). load_textures gains a walkable field in tile-records (from atlas JSON) so gameplay queries work after the tiles-dir is removed. load_tilemap falls back to an atlas-bootstrap stub when the legacy tilemap JSON is absent, allowing maps.load to succeed before load_textures is called. Texture loading uses pcall to degrade gracefully in headless environments. Bumps lib version to 0.3.0 to flag the breaking change in tile-record shape (id is now integer, name is the stable string identifier). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
57 B
57 B