diff options
| author | Gene Pasquet <dev@etenil.net> | 2026-04-19 21:54:29 +0100 |
|---|---|---|
| committer | Gene Pasquet <dev@etenil.net> | 2026-04-19 21:54:29 +0100 |
| commit | 41de1e985ce52ca6d4a59ebc93cbbb21bbf28543 (patch) | |
| tree | a4896899d0706cb67cd349fb01432658a9a4d2ef /docs/physics.org | |
| parent | f820a4348f0f4594eadcbf594c180c9992b09bff (diff) | |
Light refactor in animations
Diffstat (limited to 'docs/physics.org')
| -rw-r--r-- | docs/physics.org | 5 |
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 |
