From ae60497f7722e01ccceebe799b5820717e048eb3 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 20 Oct 2021 18:42:10 -0400 Subject: Haven't committed in days, oops! --- bonnie-bee/common.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bonnie-bee/common.scm') 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))) -- cgit v1.2.3