SOFTLEASH / DOCUMENTATION
Timers
Schedule small pieces of work without hiding time inside your game logic.
A working outline. The snippets below use plain LÖVE and Lua, not the final SoftLEASH API.
Overview
Timers are useful for cooldowns, delayed actions, and repeating gameplay beats. Keeping time-based work explicit makes it easier to pause, cancel, and understand.
Use this page to describe timer creation, repetition, cancellation, and ownership. This placeholder measures elapsed time directly through LÖVE’s update callback.
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
One-shot and repeating timers.
Cancellation and ownership.
Pause behavior and time scale.
