summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-03-29 16:16:33 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-03-29 16:16:33 -0400
commit40bacd7e2ba29a1813a8fcd8070cf9ea4a9abca8 (patch)
tree357871d81758a8f878b303c5c814a38be79bad8a /examples
parent2fd537d6ecaa428068ad0576cafcd1254e5e654f (diff)
Don't load sprite shaders upon importing (2d sprite) module.
* 2d/sprite.scm (sprite-shader): Set to #f initially. (enable-sprites): New procedure. * 2d/common.scm: Enable sprites.
Diffstat (limited to 'examples')
-rw-r--r--examples/common.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/common.scm b/examples/common.scm
index b9675eb..b26186a 100644
--- a/examples/common.scm
+++ b/examples/common.scm
@@ -21,9 +21,12 @@
(2d keyboard)
(2d repl)
(2d signal)
+ (2d sprite)
(2d window))
(open-window)
+(enable-sprites)
+
(add-hook! key-press-hook (lambda (key unicode)
(when (eq? key 'escape)
(quit-game))))