summaryrefslogtreecommitdiff
path: root/haunt.scm
diff options
context:
space:
mode:
Diffstat (limited to 'haunt.scm')
-rw-r--r--haunt.scm24
1 files changed, 10 insertions, 14 deletions
diff --git a/haunt.scm b/haunt.scm
index 0e876fe..798567c 100644
--- a/haunt.scm
+++ b/haunt.scm
@@ -508,25 +508,24 @@ and smile, because you've just generated your first Haunt site!"))
#:manual? #t
#:description
`((p "Chickadee is a game development toolkit for "
- ,(anchor "Guile Scheme" "https://gnu.org/s/guile")
- " built on top of "
- ,(anchor "SDL2" "http://libsdl.org")
- " and OpenGL.")
+ ,(anchor "Guile Scheme" "https://gnu.org/s/guile") ".")
,(centered-image "/images/chickadee/logo.png" "Chickadee logo")
(p "Chickadee aims to provide all the features that
-parenthetically inclined game developers need to make 2D (and
-eventually 3D) games in Scheme, such as:")
+parenthetically inclined game developers need to make games in Scheme,
+such as:")
(ul
(li "extensible, fixed-timestep game loop")
(li "OpenGL-based rendering engine")
- (li "keyboard, mouse, controller input")
- (li "REPL-driven development model"))
+ (li "keyboard, mouse, controller input events")
+ (li "vectors, matrices, bounding boxes, easing functions, etc.")
+ (li "asynchronous scripting"))
(p "Here is a simple example:")
,(highlight-scheme
"(use-modules (chickadee)
(chickadee math vector)
(chickadee render sprite)
- (chickadee render texture))
+ (chickadee render texture)
+ (chickadee sdl))
(define sprite #f)
@@ -534,12 +533,9 @@ eventually 3D) games in Scheme, such as:")
(set! sprite (load-image \"images/chickadee.png\")))
(define (draw alpha)
- (draw-sprite sprite (vec2 256.0 176.0)))
-
-(add-hook! load-hook load)
-(add-hook! draw-hook draw)
+ (draw-sprite sprite #v(256.0 176.0)))
-(run-game)
+(run-game/sdl #:load load #:draw draw)
")
(p (small ,(anchor "chickadee sprite by Refuzzle, CC0"
"http://opengameart.org/content/winter-birds"))))