diff options
author | David Thompson <dthompson2@worcester.edu> | 2018-12-13 20:50:39 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-12-13 20:54:52 -0500 |
commit | fa30685ab7f8a3e44bc144b68a8516ba31de3cc4 (patch) | |
tree | 63ebdb94249a07c7d4ce5c3d8d58f0c33bf43484 /examples | |
parent | 5303ba35bb8a70ea914c75fc352972e29c795a3f (diff) |
examples: Simplify text example.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/text.scm | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/examples/text.scm b/examples/text.scm index 40b7653..d181889 100644 --- a/examples/text.scm +++ b/examples/text.scm @@ -1,14 +1,8 @@ -(use-modules (chickadee) - (chickadee math vector) +(use-modules (chickadee math vector) (chickadee render font) (chickadee sdl)) (define (draw alpha) - (draw-text "(draw-text font \"Hello, world!\" (vec2 100.0 200.0))" - #v(100.0 200.0)) - (draw-text "Chickadee is a game development toolkit for Guile Scheme." - #v(100.0 150.0)) - (draw-text "The quick brown fox jumps over the lazy dog" - #v(100.0 100.0))) + (draw-text "Hello, world!" #v(260.0 240.0))) (run-game/sdl #:draw draw) |