aboutsummaryrefslogtreecommitdiff
path: root/demo/sandbox.scm
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2026-04-08 01:57:20 +0100
committerGene Pasquet <dev@etenil.net>2026-04-08 01:57:20 +0100
commit9e8b75f9949259ef01942cd3717b79b044efddf7 (patch)
treec6b71291ade57f0560a9bbf0db9f5b66bab65cb3 /demo/sandbox.scm
parent84840ede6646ed793b61cdd889d3f57ab05e9311 (diff)
Refactor update pipelines
Diffstat (limited to 'demo/sandbox.scm')
-rw-r--r--demo/sandbox.scm15
1 files changed, 6 insertions, 9 deletions
diff --git a/demo/sandbox.scm b/demo/sandbox.scm
index 6a6030f..a34ebd9 100644
--- a/demo/sandbox.scm
+++ b/demo/sandbox.scm
@@ -162,14 +162,11 @@
(let ((tm (scene-tilemap (game-scene game))))
(game-scene-set! game
(chain (game-scene game)
- (scene-update-entities _ (cut step-tweens <> dt))
- (scene-update-entities _ (cut integrate-entity <> dt tm))
- (scene-sync-groups _)
- (scene-resolve-collisions _)
- (scene-update-entities _
- (lambda (e)
- (if (entity-ref e #:gravity? #f)
- (detect-on-solid e tm (scene-entities _))
- e)))))))))
+ (scene-map-entities _ (cut step-tweens <> dt))
+ (scene-map-entities _ (cut integrate-entity <> dt tm))
+ (scene-transform-entities _ sync-groups)
+ (scene-transform-entities _ resolve-entity-collisions)
+ (scene-map-entities _
+ (lambda (e) (detect-on-solid e tm (scene-entities _))))))))))
(game-run! *game*)