summaryrefslogtreecommitdiff
path: root/starling/game.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-08-24 08:39:28 -0400
committerDavid Thompson <dthompson2@worcester.edu>2018-08-24 08:39:28 -0400
commit01c93a1ebe9e5648a73025d5356d9cee72c7464d (patch)
tree92e7a43c04c680e38fbbc0b918cdd7c28930b5a5 /starling/game.scm
First commit!
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))