summaryrefslogtreecommitdiff
path: root/starling/game.scm
diff options
context:
space:
mode:
Diffstat (limited to 'starling/game.scm')
-rw-r--r--starling/game.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/starling/game.scm b/starling/game.scm
new file mode 100644
index 0000000..b7bc5e3
--- /dev/null
+++ b/starling/game.scm
@@ -0,0 +1,13 @@
+(define-module (starling game)
+ #:use-module (oop goops)
+ #:use-module (starling node))
+
+(define-class <game> (<node>))
+
+(define-method (render (game <game>))
+ #t)
+
+(define-class <2d-game> (<game>))
+
+(define-method (render (game <2d-game>))
+ (render-2d game))