From c2085be2dd2a0cb3da05991847e35080915e547e Mon Sep 17 00:00:00 2001 From: Gene Pasquet Date: Sat, 18 Apr 2026 05:49:34 +0100 Subject: rename modules --- docs/physics.org | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/physics.org') diff --git a/docs/physics.org b/docs/physics.org index 9cf9b96..233ffc8 100644 --- a/docs/physics.org +++ b/docs/physics.org @@ -149,7 +149,7 @@ All per-entity steps have the signature =(step scene entity dt)=. - *Reads*: =#:gravity?=, =#:vy= (default 0) - *Writes*: =#:vy= (set to =(+ vy *gravity*)=) - *Guard*: only runs when =#:gravity? #t= -- =*gravity*= is exported from =downstroke-physics=; its value is +- =*gravity*= is exported from =(downstroke physics)=; its value is =1= pixel/frame². Gravity accumulates until =resolve-tile-collisions-y= zeroes =#:vy= on contact with the floor. @@ -294,7 +294,7 @@ pair walk. *** =#:skip-pipelines= per-entity override Every per-entity step is also gated by =entity-skips-pipeline?= (from -=downstroke-entity=). If the entity's =#:skip-pipelines= list contains +=(downstroke entity)=). If the entity's =#:skip-pipelines= list contains the step's *symbol*, the step returns the entity unchanged. The symbols match the second name in each =define-pipeline= form: @@ -335,7 +335,7 @@ collisions, and still detect ground under it. *** =define-pipeline= (how steps are declared) All per-entity pipeline steps are declared with =define-pipeline= from -=downstroke-entity= (see =docs/entities.org=). The shape is: +=(downstroke entity)= (see =docs/entities.org=). The shape is: #+begin_src scheme (define-pipeline (procedure-name skip-symbol) (scene entity dt) @@ -391,7 +391,7 @@ per-pixel collision are not supported. *** Tile collision algorithm -Tiles come from a =downstroke-tilemap= parsed from a TMX file (Tiled +Tiles come from a =(downstroke tilemap)= parsed from a TMX file (Tiled editor). The tilemap stores a grid of tile ids across one or more layers; =tilemap-tile-at= returns =0= for an empty cell and a positive id for a filled cell. Only *empty vs non-empty* is checked — there is @@ -604,7 +604,7 @@ push-apart: With ='none=, nothing in =physics.scm= runs unless you call it yourself. You still have access to every physics procedure as a library: =apply-velocity-x=, =aabb-overlap?=, =resolve-tile-collisions-y=, -and so on are all exported from =downstroke-physics= and usable +and so on are all exported from =(downstroke physics)= and usable individually. ='none= just disables the *automatic* orchestration. ** Reading =#:on-ground?= to gate jumps -- cgit v1.2.3