summaryrefslogtreecommitdiff
path: root/2d
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2013-10-07 23:34:03 -0400
committerDavid Thompson <dthompson2@worcester.edu>2013-10-23 19:44:51 -0400
commit0f0add2164f6b01f79d7ba486316262de614a89d (patch)
treebc0b77b473e80b0b7dce150f4115477a411935f8 /2d
parentf47eb20b43080b1456a5e355d4bddaaa30bb5108 (diff)
Move game-fps variable.
Diffstat (limited to '2d')
-rw-r--r--2d/game-loop.scm8
1 files changed, 2 insertions, 6 deletions
diff --git a/2d/game-loop.scm b/2d/game-loop.scm
index d5f1ed0..a0ce798 100644
--- a/2d/game-loop.scm
+++ b/2d/game-loop.scm
@@ -53,12 +53,6 @@
(define tick-interval (floor (/ 1000 target-fps)))
;;;
-;;; Mutable state
-;;;
-
-(define game-fps 0)
-
-;;;
;;; Event Handling
;;;
@@ -118,6 +112,8 @@
;;; Frames Per Second
;;;
+(define game-fps 0)
+
(define accumulate-fps!
(let* ((elapsed-time 0)
(fps 0))