summaryrefslogtreecommitdiff
path: root/super-bloom/common.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-06-04 12:32:03 -0400
committerDavid Thompson <dthompson2@worcester.edu>2023-06-04 12:32:03 -0400
commit46269dcb2fa3ddcddaef81d8769784705613500c (patch)
tree1190f5a2fe1fcf14226d326953ca7216ac73f1ee /super-bloom/common.scm
parenta4a20724562a17762b6e7a44097800243d0be5f7 (diff)
Add splash screen.
Diffstat (limited to 'super-bloom/common.scm')
-rw-r--r--super-bloom/common.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/super-bloom/common.scm b/super-bloom/common.scm
index 08d4eae..0e55b90 100644
--- a/super-bloom/common.scm
+++ b/super-bloom/common.scm
@@ -14,6 +14,8 @@
(define-module (super-bloom common)
#:use-module (catbird asset)
+ #:use-module (catbird mixins)
+ #:use-module (catbird scene)
#:use-module (chickadee)
#:use-module (chickadee audio)
#:use-module (chickadee graphics text)
@@ -32,6 +34,7 @@
spray-sound
random:float
steps
+ <game-scene>
water))
(define %default-width 640)
@@ -66,4 +69,12 @@
(define (steps n)
(* n (current-timestep)))
+(define-class <game-scene> (<scene>))
+
+(define-method (width (scene <game-scene>))
+ %game-width:float)
+
+(define-method (height (scene <game-scene>))
+ %game-height:float)
+
(define-accessor water)