diff options
author | David Thompson <dthompson@member.fsf.org> | 2013-08-25 09:00:17 -0400 |
---|---|---|
committer | David Thompson <dthompson@member.fsf.org> | 2013-08-25 09:00:17 -0400 |
commit | cadab63998854244df9a55982369edc51e78babe (patch) | |
tree | 185f9ae736e4bf1ea11946053b659531df5c4496 | |
parent | 2c2cc052124b4709075132430e9b67ed49d0f76e (diff) |
Clean up example code in README.
-rw-r--r-- | README.org | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -21,8 +21,7 @@ Here is the simplest Guile-2d application (so far). #+BEGIN_SRC scheme - (use-modules (figl gl) - (2d sprite) + (use-modules (2d sprite) (2d game-loop) (2d window)) @@ -76,12 +75,13 @@ support formats. #+BEGIN_SRC scheme - (define sprite (load-sprite "cirno.png" - #:position #(0 0) - #:scale (1 1) - #:rotation (0) - #:color #xffffff - #:anchor 'center)) + (define sprite + (load-sprite "cirno.png" + #:position #(0 0) + #:scale (1 1) + #:rotation (0) + #:color white + #:anchor 'center)) #+END_SRC Alternatively, you can make a sprite from an existing texture. The @@ -118,9 +118,7 @@ (define batch (make-sprite-batch)) (with-sprite-batch batch - (for-each - (lambda (sprite) (draw-sprite sprite)) - sprites)) + (for-each draw-sprite sprites)) #+END_SRC *** Coroutines and Agendas |