summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/coroutine.scm6
-rw-r--r--examples/particles.scm2
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/coroutine.scm b/examples/coroutine.scm
index 480aa46..a479a66 100644
--- a/examples/coroutine.scm
+++ b/examples/coroutine.scm
@@ -20,12 +20,12 @@
sprite
(vector2 (random window-width)
(random window-height)))
- (wait 15)
+ (wait game-agenda 15)
(set-sprite-rotation! sprite (random 360))
- (wait 15)
+ (wait game-agenda 15)
(script))
-(schedule-next script)
+(schedule game-agenda script)
(add-hook! draw-hook (lambda (dt alpha) (draw-sprite sprite)))
diff --git a/examples/particles.scm b/examples/particles.scm
index d1362fe..0b5d6dd 100644
--- a/examples/particles.scm
+++ b/examples/particles.scm
@@ -62,7 +62,7 @@
(define (update)
(for-each update-particle! particles))
-(schedule-every update)
+(schedule-each game-agenda update)
(add-hook! draw-hook draw)
(with-window (make-window #:title "Particles"