summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* Move SDL game loop implementation to its own module.David Thompson2018-08-235-4/+9
|
* math: vector: Add read syntax.David Thompson2018-08-235-8/+8
| | | | | | | | | * 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-235-28/+13
| | | | | | | | | | | | | | | 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.
* Remove experimental buffer API.David Thompson2018-06-251-33/+0
|
* Add tile map example.David Thompson2018-01-294-0/+131
| | | | | | | | * examples/images/tiles.png: New file. * examples/map/example.tmx: New file. * examples/tiled.scm: New file. * Makefile.am (EXTRA_DIST): Add them. * examples/images/AUTHORS: Credit the author of the tileset.
* Move color module into render namespace.David Thompson2017-08-081-1/+1
|
* Add buffer module.David Thompson2017-05-021-0/+33
| | | | | | | | | * chickadee/buffer.scm: New file. * Makefile.am (SOURCES): Add it. * .dir-locals.el: Add indent rules for with-buffer and with-current-buffer. * examples/buffer.scm: New file. * doc/api.texi (Buffers): Add docs.
* examples: Add nine-patch example.David Thompson2017-01-263-0/+32
| | | | | | * examples/nine-patch.scm: New file. * examples/images/dialog-box.png: New file. * examples/AUTHORS: New file.
* examples: Add line segment example.David Thompson2017-01-251-0/+31
| | | | * examples/lines.scm: New file.
* render: Add bitmap font support.David Thompson2017-01-244-0/+275
| | | | | | | | | * chickadee/render/font.scm: New file. * Makefile.am (SOURCES): Add it. * examples/text.scm: New file. * examples/fonts/AUTHORS: New file. * examples/fonts/good_neighbors_starling.png: New file. * examples/fonts/good_neighbors_starling.xml: New file.
* examples: sprite: Quit the demo when close button is pressed.David Thompson2017-01-241-0/+1
|
* Add basic sprite example.David Thompson2017-01-232-0/+17