summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-11-09 22:46:36 -0500
committerDavid Thompson <dthompson2@worcester.edu>2015-11-09 22:46:36 -0500
commitc0806dfca6af0ca48cc2c6b43ac3233f8dc9a1f3 (patch)
tree7b28b6b66244d76ad5674fde3a97271a77cbf2d6 /README
parentced79cb791c929f209d81dacf384e65fac5c37fa (diff)
Update README.
Diffstat (limited to 'README')
-rw-r--r--README27
1 files changed, 11 insertions, 16 deletions
diff --git a/README b/README
index e2c75c4..e820e16 100644
--- a/README
+++ b/README
@@ -4,13 +4,12 @@ Sly is a free software game engine written in [[https://gnu.org/software/guile][
provides an abstraction layer above SDL and OpenGL for common game
programming requirements such as:
+- Scripting
- Animation
- Shaders
- Sprites
- Tilesets
-- Scene graph
- Keyboard/mouse/joystick input
-- Scripting
Sly differentiates itself from most other game engines by encouraging
[[http://toplap.org/about/][live coding]] and emphasizing [[http://elm-lang.org/learn/What-is-FRP.elm][functional reactive programming]].
@@ -33,16 +32,18 @@ Sly differentiates itself from most other game engines by encouraging
;; Create OpenGL context and do other setup.
(sly-init)
- ;; The object to render.
- (define model
- (model-move (vector2 320 240) (load-sprite "gnu.png")))
+ ;; Load a GNU head sprite.
+ (define gnu
+ (load-sprite "gnu.png"))
;; The way we see the world.
- (define camera (orthographic-camera 640 480))
+ (define camera
+ (2d-camera #:area (make-rect 0 0 640 480)))
- ;; View the model from the perspective of the camera.
+ ;; View the sprite from the perspective of the camera.
(define-signal scene
- (make-scene camera model))
+ (with-camera camera
+ (move (vector2 320 240) (render-sprite gnu))))
(with-window (make-window #:title "Hello, world!")
(run-game-loop scene))
@@ -130,7 +131,7 @@ Sly differentiates itself from most other game engines by encouraging
=(start-sly-repl)=. To connect to the REPL server, use the [[http://www.nongnu.org/geiser/][Geiser]]
extension for GNU Emacs.
- *Geiser*
+*** Geiser
#+BEGIN_SRC fundamental
M-x connect-to-guile
@@ -158,7 +159,7 @@ Sly differentiates itself from most other game engines by encouraging
running:
#+BEGIN_SRC sh
- guix environment -l package.scm
+ guix environment -l guix.scm
#+END_SRC
* Running Examples
@@ -188,12 +189,6 @@ Sly differentiates itself from most other game engines by encouraging
useful modules, start a REPL server, open a window, and start the
game loop. Simply connect to the REPL server and start hacking!
-* Platforms
-
- Sly supports GNU/Linux currently. OS X support is in the works, but
- there are problems with guile-sdl. See
- https://github.com/davexunit/guile-2d/issues/2 for more details.
-
* Dependencies
- GNU Guile >= 2.0.11