summaryrefslogtreecommitdiff
path: root/examples/common.scm
blob: 15bc53b64d3388ac58b307fb902de05804f2d247 (plain)
1
2
3
4
5
6
7
8
(use-modules (2d keyboard)
             (2d repl server))

(spawn-server)

(add-hook! key-press-hook (lambda (key unicode)
                            (when (eq? key 'escape)
                              (quit-game))))