summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@member.fsf.org>2013-08-15 18:14:29 -0400
committerDavid Thompson <dthompson@member.fsf.org>2013-08-15 18:14:29 -0400
commitacc9e887c81677dc88ef793b3e27e7fac3a72ab7 (patch)
tree2e8f45707ef247ca3c434da6c30730aaf401db2c
parent2fa15ac572e2fc1975e28b9dc6d8becf31f15534 (diff)
Update README.
-rw-r--r--README.org26
1 files changed, 16 insertions, 10 deletions
diff --git a/README.org b/README.org
index 715252c..5690be1 100644
--- a/README.org
+++ b/README.org
@@ -28,7 +28,15 @@
(define window-width 800)
(define window-height 600)
- (define sprite #f)
+
+ ;; Open the window.
+ (open-window window-width window-height)
+
+ ;; Load a sprite and center it on the screen.
+ (define sprite
+ (load-sprite "sprite.png"
+ #:position (vector (/ window-width 2)
+ (/ window-height 2))))
(define (key-down key)
(display key) (newline)
@@ -48,15 +56,6 @@
(add-hook! on-render-hook (lambda () (render)))
(add-hook! on-key-down-hook (lambda (key) (key-down key)))
- ;; Open the window.
- (open-window window-width window-height)
-
- ;; Load a sprite and center it on the screen.
- ;; Must be done AFTER opening the window.
- (set! sprite (load-sprite "sprite.png"
- #:position (vector (/ window-width 2)
- (/ window-height 2))))
-
;; Start the game loop.
;; The render callback will be called through this procedure.
(run-game-loop)
@@ -72,6 +71,10 @@
=load-sprite= procedure. All arguments except the filename are
optional keyword arguments.
+ Guile-2d uses the FreeImage library and can load many different
+ image formats. See the FreeImage [[http://freeimage.sourceforge.net/features.html][features page]] for a full list of
+ support formats.
+
#+BEGIN_SRC scheme
(define sprite (load-sprite "cirno.png"
#:position #(0 0)
@@ -207,6 +210,7 @@
** Dependencies
+ - GNU Guile >= 2.0 (>= 2.0.9 recommended)
- [[https://gitorious.org/guile-figl/guile-figl][guile-figl]]
No official release. guile-2d runs off of the latest master
@@ -219,6 +223,8 @@
- [[https://www.gnu.org/software/guile-sdl/index.html][guile-sdl]] >= 0.5.0
- SDL 1.2
+ - FreeImage >= 3.1
+ - Freetype >= 2.0
** License