aboutsummaryrefslogtreecommitdiff
path: root/docs/physics.org
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2026-04-19 21:54:29 +0100
committerGene Pasquet <dev@etenil.net>2026-04-19 21:54:29 +0100
commit41de1e985ce52ca6d4a59ebc93cbbb21bbf28543 (patch)
treea4896899d0706cb67cd349fb01432658a9a4d2ef /docs/physics.org
parentf820a4348f0f4594eadcbf594c180c9992b09bff (diff)
Light refactor in animations
Diffstat (limited to 'docs/physics.org')
-rw-r--r--docs/physics.org5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/physics.org b/docs/physics.org
index 233ffc8..9c57cc1 100644
--- a/docs/physics.org
+++ b/docs/physics.org
@@ -255,7 +255,10 @@ entity list.
*** apply-animation
- *Reads*: =#:animations=, =#:anim-name=, =#:anim-frame=, =#:anim-tick=
-- *Writes*: =#:anim-tick=, =#:anim-frame=, =#:tile-id=, =#:duration=
+ (the tick budget each step is =animation-frame-duration= on the current
+ animation + frame index — see =docs/animation.org=).
+- *Writes*: =#:anim-tick=, =#:anim-frame=, =#:tile-id=, =#:anim-duration=
+ (=#:anim-duration= mirrors the resolved budget for the current frame).
- *Guard*: only runs when =#:animations= is present.
- Advances the per-entity animation state machine and updates
=#:tile-id= so the renderer draws the correct sprite. Fully