From d0ff41fb7a33c096a792ab57f5bbf7992b1cc399 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 4 May 2014 14:03:00 -0400 Subject: Add current-agenda parameter. * 2d/agenda.scm (current-agenda): New variable. (with-agenda): New macro. (agenda-time, tick-agenda!, clear-agenda!, schedule) (schedule-interval, schedule-each, wait): Remove agenda parameter. * 2d/game.scm (game-agenda): Delete it. (update): Tick current agenda. * 2d/helpers.scm (define-guardian): Remove agenda argument. * 2d/repl.scm (start-2d-repl): Remove agenda argument to schedule-each. * 2d/signal.scm (signal-sample, signal-delay, signal-throttle): Remove agenda parameter. * 2d/sprite.scm: * examples/common.scm: * examples/coroutine.scm: * examples/font.scm: * examples/particles.scm: Remove mention of game-agenda. * README.org: Update example snippets. --- 2d/sprite.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to '2d/sprite.scm') diff --git a/2d/sprite.scm b/2d/sprite.scm index 3b74fdb..c050a39 100644 --- a/2d/sprite.scm +++ b/2d/sprite.scm @@ -32,7 +32,6 @@ #:use-module (2d animation) #:use-module (2d color) #:use-module (2d config) - #:use-module (2d game) #:use-module (2d helpers) #:use-module (2d math) #:use-module (2d shader) @@ -175,8 +174,7 @@ currently bound." 1)))) ;; A hash table for all of the animated sprites that have been drawn -;; since the last game update. It is cleared after every game-agenda -;; tick. +;; since the last game update. It is cleared after every agenda tick. (define animated-sprites (make-hash-table)) (define (register-animated-sprite-maybe sprite) @@ -191,4 +189,4 @@ currently bound." (hash-clear! animated-sprites)) ;; Update animated sprites upon every update. -(schedule-each game-agenda update-animated-sprites!) +(schedule-each update-animated-sprites!) -- cgit v1.2.3