summaryrefslogtreecommitdiff
path: root/examples/lines.scm
Commit message (Collapse)AuthorAgeFilesLines
* Move SDL game loop implementation to its own module.David Thompson2018-08-231-1/+2
|
* math: vector: Add read syntax.David Thompson2018-08-231-2/+2
| | | | | | | | | * chickadee/math/vector.scm (read-vec): New procedure. Extend reader. * examples/lines.scm: Use new vector read syntax. * examples/nine-patch.scm: Ditto. * examples/sprite.scm: Ditto. * examples/text.scm: Ditto. * examples/tiled.scm: Ditto.
* Make the game loop modular!David Thompson2018-08-231-4/+1
| | | | | | | | | | | | | | | This is really cool! Now users can plug in whatever backend they'd like and are not forced to use SDL and OpenGL. Thanks to Chris Webber for showing me the Lux library for Racket that does exactly this. * chickadee.scm (run-game): Remove all SDL/OpenGL code, replace with generic render/update keyword arguments. (run-game/sdl): New procedure. * examples/lines.scm: Update for API breakage. * examples/nine-patch.scm: Ditto. * examples/sprite.scm: Ditto. * examples/text.scm: Ditto. * examples/tiled.scm: Ditto.
* Move color module into render namespace.David Thompson2017-08-081-1/+1
|
* examples: Add line segment example.David Thompson2017-01-251-0/+31
* examples/lines.scm: New file.