summaryrefslogtreecommitdiff
path: root/2d
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2013-07-15 23:28:28 -0400
committerDavid Thompson <dthompson2@worcester.edu>2013-07-15 23:28:28 -0400
commite69c2dcb4809d6c6dbf5e6bb15ed3a1ac9092921 (patch)
treea72b5e9d68b42633e24fbeebf093f07444ca2e7c /2d
parentd1a61c458e5cbe39954d170ec8d94902e1223c8c (diff)
Update the global agenda in the game loop.
Diffstat (limited to '2d')
-rw-r--r--2d/game-loop.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/2d/game-loop.scm b/2d/game-loop.scm
index d508d26..9e743c7 100644
--- a/2d/game-loop.scm
+++ b/2d/game-loop.scm
@@ -24,6 +24,7 @@
(define-module (2d game-loop)
#:use-module ((sdl sdl) #:prefix SDL:)
#:use-module (figl gl)
+ #:use-module (2d agenda)
#:export (set-render-callback
set-update-callback
set-key-up-callback
@@ -152,6 +153,7 @@ is the unused accumulator time."
(if (>= accumulator frame-interval)
(begin
(update-callback)
+ (update-agenda)
(update (- accumulator frame-interval)))
accumulator))