diff options
Diffstat (limited to 'examples/coroutine.scm')
-rw-r--r-- | examples/coroutine.scm | 6 |
1 files changed, 3 insertions, 3 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))) |