summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <davet@gnu.org>2015-06-10 09:01:39 -0400
committerDavid Thompson <davet@gnu.org>2015-06-10 09:01:39 -0400
commit8ee10f0726a60d187ae5c5e42b807113a5295b82 (patch)
tree05a33a922038dd3e70dd81e80f730a5e5e17c1ed
parentb5badcfaeccafd8cf591c2b74f9de4cfee1bcba4 (diff)
Update README.
-rw-r--r--README22
1 files changed, 16 insertions, 6 deletions
diff --git a/README b/README
index 3167c82..9a0b681 100644
--- a/README
+++ b/README
@@ -29,21 +29,27 @@ Sly differentiates itself from most other game engines by encouraging
#+BEGIN_SRC scheme
(use-modules (sly game)
+ (sly signal)
(sly window)
(sly math vector)
(sly render camera)
(sly render model)
- (sly render sprite))
+ (sly render sprite)
+ (sly render scene))
- (define scene
+ ;; The object to render.
+ (define model
(model-move (vector2 320 240) (load-sprite "gnu.png")))
+ ;; The way we see the world.
(define camera (orthographic-camera 640 480))
- (add-hook! draw-hook (lambda _ (draw-model scene camera)))
+ ;; View the model from the perspective of the camera.
+ (define-signal scene
+ (make-scene camera model))
(with-window (make-window #:title "Hello, world!")
- (start-game-loop))
+ (run-game-loop scene))
#+END_SRC
* Features
@@ -60,14 +66,14 @@ Sly differentiates itself from most other game engines by encouraging
updates. Additionally, a fixed timestep allows for a deterministic
simulation, unlike a variable timestep.
- To start up the game loop, simply call =(start-game-loop)=. It's a
+ To start up the game loop, simply call =(run-game-loop)=. It's a
good idea to set up the game window prior to starting the loop via
the =with-window= form.
#+BEGIN_SRC scheme
(with-window (make-window #:title "Best Game Ever"
#:resolution #(640 480))
- (start-game-loop))
+ (run-game-loop))
#+END_SRC
** Functional Reactive Programming
@@ -201,6 +207,10 @@ Sly differentiates itself from most other game engines by encouraging
- FreeImage >= 3.0
- GNU Scientific Library (GSL)
+* Releases
+
+ Releases can be found on Sly's [[http://dthompson.us/pages/software/sly.html][home page]].
+
* Community
For help and general discussion, join the =#sly= IRC channel on