summaryrefslogtreecommitdiff
path: root/bonnie-bee/common.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2021-10-20 18:42:10 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2021-10-20 18:42:10 -0400
commitae60497f7722e01ccceebe799b5820717e048eb3 (patch)
tree7977b53565d5f1e259d90903213f1add3fefabce /bonnie-bee/common.scm
parentde833c9d524d2e47b3812612995290795d2e7b84 (diff)
Haven't committed in days, oops!
Diffstat (limited to 'bonnie-bee/common.scm')
-rw-r--r--bonnie-bee/common.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/bonnie-bee/common.scm b/bonnie-bee/common.scm
index fa9f14a..75a6bc4 100644
--- a/bonnie-bee/common.scm
+++ b/bonnie-bee/common.scm
@@ -1,4 +1,5 @@
(define-module (bonnie-bee common)
+ #:use-module (chickadee game-loop)
#:use-module (chickadee graphics color)
#:use-module (chickadee graphics viewport)
#:use-module (chickadee math vector)
@@ -9,7 +10,8 @@
%window-height
%game-width
%game-height
- set-cameras!))
+ set-cameras!
+ steps))
(define %window-width 960)
(define %window-height 720)
@@ -22,3 +24,6 @@
#:resolution (vec2 %game-width %game-height)
#:viewport (make-viewport 0 0 %window-width %window-height
#:clear-color black)))))
+
+(define (steps n)
+ (* n (current-timestep)))