diff options
| author | Gene Pasquet <dev@etenil.net> | 2026-04-12 15:57:45 +0100 |
|---|---|---|
| committer | Gene Pasquet <dev@etenil.net> | 2026-04-12 15:57:45 +0100 |
| commit | c1c868d9b6ee61002c7ccb33fbc6a15c5b090e6a (patch) | |
| tree | b818607a0e2ab52113e3fcead77a096b9adfdbfb /demo | |
| parent | e1da1b0c2b2df9880e7f0a76b6ecc7aefecaf229 (diff) | |
Enrich entities pipelining to provide scene context to processors
Diffstat (limited to 'demo')
| -rw-r--r-- | demo/sandbox.scm | 2 | ||||
| -rw-r--r-- | demo/shmup.scm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/demo/sandbox.scm b/demo/sandbox.scm index 09c31fb..e23584f 100644 --- a/demo/sandbox.scm +++ b/demo/sandbox.scm @@ -140,7 +140,7 @@ (let ((scene (game-scene game))) (game-scene-set! game (scene-map-entities scene - (lambda (e) + (lambda (scene_ e) (if (eq? (entity-type e) 'demo-bot) (update-demo-bot e dt) e)))))))) diff --git a/demo/shmup.scm b/demo/shmup.scm index f4897ae..315069c 100644 --- a/demo/shmup.scm +++ b/demo/shmup.scm @@ -149,7 +149,7 @@ (game-scene-set! game (chain (update-scene scene entities: all) (scene-map-entities _ - (lambda (e) (if (eq? (entity-type e) 'player) e (move-projectile e)))) + (lambda (scene_ e) (if (eq? (entity-type e) 'player) e (move-projectile e)))) (scene-remove-dead _) (scene-filter-entities _ (lambda (e) (or (eq? (entity-type e) 'player) (in-bounds? e)))))))))) |
