summaryrefslogtreecommitdiff
path: root/engine/node.scm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/node.scm')
-rw-r--r--engine/node.scm49
1 files changed, 25 insertions, 24 deletions
diff --git a/engine/node.scm b/engine/node.scm
index 5f2434b..b62d6e4 100644
--- a/engine/node.scm
+++ b/engine/node.scm
@@ -1,6 +1,6 @@
;;; Lisp Game Jam 2018
;;; Copyright © 2018 David Thompson <davet@gnu.org>
-;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This program is free software: you can redistribute it and/or
;;; modify it under the terms of the GNU General Public License as
@@ -17,6 +17,7 @@
;;; <http://www.gnu.org/licenses/>.
(define-module (engine node)
+ #:use-module (chickadee)
#:use-module (chickadee sdl)
#:use-module (chickadee math matrix)
#:use-module (chickadee math quaternion)
@@ -229,26 +230,26 @@ one."
(window-height 480)
window-fullscreen?
(update-hz 60))
- (run-game/sdl #:window-title window-title
- #:window-width window-width
- #:window-height window-height
- #:window-fullscreen? window-fullscreen?
- #:update-hz update-hz
- #:load
- (lambda ()
- (set-root-node! (make-root-node)))
- #:draw
- (cut draw/children *root-node* <>)
- #:update
- (cut update/children *root-node* <>)
- #:quit
- (lambda ()
- (visit-while (cut on-quit <>) *root-node*))
- #:key-press
- (lambda (key sc mods repeat?)
- (visit-while (cut on-key-press <> key mods repeat?)
- *root-node*))
- #:text-input
- (lambda (text)
- (visit-while (cut on-text-edit <> text)
- *root-node*))))
+ (run-game #:window-title window-title
+ #:window-width window-width
+ #:window-height window-height
+ #:window-fullscreen? window-fullscreen?
+ #:update-hz update-hz
+ #:load
+ (lambda ()
+ (set-root-node! (make-root-node)))
+ #:draw
+ (cut draw/children *root-node* <>)
+ #:update
+ (cut update/children *root-node* <>)
+ #:quit
+ (lambda ()
+ (visit-while (cut on-quit <>) *root-node*))
+ #:key-press
+ (lambda (key sc mods repeat?)
+ (visit-while (cut on-key-press <> key mods repeat?)
+ *root-node*))
+ #:text-input
+ (lambda (text)
+ (visit-while (cut on-text-edit <> text)
+ *root-node*))))