summaryrefslogtreecommitdiff
path: root/examples/2048
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-12-06 13:18:16 -0500
committerDavid Thompson <dthompson2@worcester.edu>2014-12-06 13:20:49 -0500
commitfc258d5caefb896c2790e91849963bab729ad3c1 (patch)
treeb3ddd34678aec8ce954c67cfb7587b594fb9b43e /examples/2048
parent46d45c0a6dc1969e4ef631646f6a657dc5eb3a98 (diff)
examples: Update 2048.
* examples/2048/2048: Delete. * examples/2048/2048.scm: New file. * examples/Makefile.am (examples_DATA): Add new file. Remove old one.
Diffstat (limited to 'examples/2048')
-rwxr-xr-xexamples/2048/2048.scm (renamed from examples/2048/2048)13
1 files changed, 4 insertions, 9 deletions
diff --git a/examples/2048/2048 b/examples/2048/2048.scm
index 8d0c134..73cb5f6 100755
--- a/examples/2048/2048
+++ b/examples/2048/2048.scm
@@ -1,6 +1,3 @@
-#! /usr/bin/env guile
-!#
-
;;; 2048
;;; Copyright (C) 2014 David Thompson <dthompson2@worcester.edu>
;;; Copyright (C) 2014 Jordan Russell <jordan.likes.curry@gmail.com>
@@ -439,11 +436,9 @@
#:viewport (make-viewport (make-rect 0 0 640 480)
#:clear-color background)))
-(define draw-2048
- (let ((context (make-render-context)))
- (lambda (dt alpha)
- (signal-let ((scene 2048-scene))
- (draw-group scene camera context)))))
+(define (draw-2048 dt alpha)
+ (signal-let ((scene 2048-scene))
+ (draw-group scene camera)))
;;;
;;; Initialization
@@ -458,5 +453,5 @@
(start-game-loop))
;;; Local Variables:
-;;; compile-command: "../../pre-inst-env guile 2048"
+;;; compile-command: "../../pre-inst-env guile 2048.scm"
;;; End: