diff options
author | David Thompson <davet@gnu.org> | 2015-06-10 08:58:30 -0400 |
---|---|---|
committer | David Thompson <davet@gnu.org> | 2015-06-10 08:58:30 -0400 |
commit | b5badcfaeccafd8cf591c2b74f9de4cfee1bcba4 (patch) | |
tree | 590c738c804d4dd03c9e9b7f4b4d52b1c1ba23b7 | |
parent | 499eb8c5e712455474a8d3e5bcfd8cb875004f64 (diff) |
Update sandbox script.
-rw-r--r-- | sandbox.in | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -1,5 +1,4 @@ -#!@GUILE@ \ --L . -s +#!@GUILE@ --no-auto-compile !# ;;; Sly @@ -33,6 +32,7 @@ (sly render texture) (sly render model) (sly render camera) + (sly render scene) (sly input keyboard) (sly input mouse) (sly math rect) @@ -46,23 +46,22 @@ (display "Welcome to the Sly sandbox. Happy hacking!\n") -(define-signal scene null-model) +(define-signal model null-model) (define-signal camera (orthographic-camera 640 480)) -(define (draw-scene dt alpha) - (signal-let ((scene scene) - (camera camera)) - (draw-model scene camera))) - -(add-hook! draw-hook (trampoline draw-scene)) +(define-signal scene + (signal-let ((camera camera) + (model model)) + (make-scene camera model))) (with-window (make-window #:title "Sly Sandbox") - (run-game-loop)) + (run-game-loop scene)) (display "Bye!\n") ;;; Local Variables: ;;; compile-command: "./pre-inst-env sandbox" +;;; mode: scheme ;;; End: |