diff options
author | David Thompson <dthompson2@worcester.edu> | 2014-03-29 16:16:33 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2014-03-29 16:16:33 -0400 |
commit | 40bacd7e2ba29a1813a8fcd8070cf9ea4a9abca8 (patch) | |
tree | 357871d81758a8f878b303c5c814a38be79bad8a /examples | |
parent | 2fd537d6ecaa428068ad0576cafcd1254e5e654f (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.scm | 3 |
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)))) |