summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2017-01-24 19:53:05 -0500
committerDavid Thompson <dthompson2@worcester.edu>2017-01-24 20:23:12 -0500
commit76217a1436db38c197cb08523d8861bb09c97728 (patch)
treef3b0060203b5c6480d918d0ea060caea4c72cb44
parent483ea5498e5c18e49a854dda9e9f752b4d7b0dfd (diff)
examples: sprite: Quit the demo when close button is pressed.
-rw-r--r--examples/sprite.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/sprite.scm b/examples/sprite.scm
index 86a2788..92ab364 100644
--- a/examples/sprite.scm
+++ b/examples/sprite.scm
@@ -13,5 +13,6 @@
(add-hook! load-hook load)
(add-hook! draw-hook draw)
+(add-hook! quit-hook abort-game)
(run-game)