From 41de1e985ce52ca6d4a59ebc93cbbb21bbf28543 Mon Sep 17 00:00:00 2001 From: Gene Pasquet Date: Sun, 19 Apr 2026 21:54:29 +0100 Subject: Light refactor in animations --- docs/physics.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs/physics.org') 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 -- cgit v1.2.3