From c9bb5b91b82900294413786f75b6ef021a59bb5a Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 24 Apr 2014 21:57:50 -0400 Subject: Rename game loop procedures and remove parameter. * 2d/game.scm (tick-interval): No longer a parameter. (run-game-loop, start-game-loop): Rename. (quit-game, stop-game-loop): Rename. * examples/animation.scm: Use start-game-loop and stop-game-loop. * examples/common.scm: Use start-game-loop and stop-game-loop. * examples/coroutine.scm: Use start-game-loop and stop-game-loop. * examples/font.scm: Use start-game-loop and stop-game-loop. * examples/guile-2048/guile-2048.scm: Use start-game-loop and stop-game-loop. * examples/particles.scm: Use start-game-loop and stop-game-loop. * examples/simple.scm: Use start-game-loop and stop-game-loop. * examples/tilemap.scm: Use start-game-loop and stop-game-loop. --- examples/guile-2048/guile-2048.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/guile-2048/guile-2048.scm') diff --git a/examples/guile-2048/guile-2048.scm b/examples/guile-2048/guile-2048.scm index d5ded0a..637650b 100755 --- a/examples/guile-2048/guile-2048.scm +++ b/examples/guile-2048/guile-2048.scm @@ -475,8 +475,8 @@ (start-2d-repl) -(add-hook! window-close-hook quit-game) +(add-hook! window-close-hook stop-game-loop) (add-hook! draw-hook (lambda (dt alpha) (render))) (with-window (make-window #:title "2048") - (run-game-loop)) + (start-game-loop)) -- cgit v1.2.3