Files
sporel-lib-core.puppet/init.lua
Axel Meyer 7061ea079e feat: sprite-mode render with z_order sort and color-rect fallback
Walks bones in z-sorted order (rig.bones_z_sorted, lowest first =
back). For each bone:
- If texture_handle present: draw via engine.render.draw_sprite_transform
  using bone.scale and bone.anchor (negative scale mirrors the sprite,
  anchor is the in-texture pivot).
- Else: fall back to colored rotated 16x4 rect via draw_rect_rotated
  (Phase 1 behavior preserved).

bone_state[bid].world (cached by M.update's depth-first pipeline) is
the source of (x, y, angle).
2026-05-18 03:07:00 +02:00

22 KiB