SOFTLEASH / DOCUMENTATION
Layered Rendering
Make draw order explicit, from the background to the last UI element.
A working outline. The snippets below use plain LÖVE and Lua, not the final SoftLEASH API.
Overview
Layered rendering gives each visual element a predictable place in the draw order. Backgrounds, world objects, effects, and UI can be organized without relying on accidental object order.
Describe layer creation, sorting, camera behavior, and per-layer options here. The example uses LÖVE’s immediate draw order: later shapes appear over earlier ones.
LÖVE example
A small, plain LÖVE example for the draft. Replace this snippet with the documented SoftLEASH API and a focused use case later.
What to document next
Declaring layers and their order.
Sorting objects within a layer.
World-space and screen-space drawing.
