summaryrefslogtreecommitdiff
path: root/examples/sprite.scm
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite GPU state management layer.David Thompson2023-11-081-0/+3
|
* math: vector: Deprecate #v syntax and remove uses of it.David Thompson2021-09-211-1/+1
|
* Rename 'render' subdirectory to 'graphics'.David Thompson2020-10-031-2/+2
|
* Re-hide SDL2 details.David Thompson2018-12-131-3/+2
| | | | | | | | | | | | | | | | | | | | | I know I'm backpedaling here, but I think it was a mistake to expose SDL2 as much as I have here. I think it's better for people just getting started to not have to wonder what SDL means. Making things as usable as possible for beginners is an important goal, and abstracting SDL2 + OpenGL things from the core game loop implementation shouldn't require sacrificing that goal. * chickadee.scm: Switch code with... * chickadee/game-loop.scm: ...this! Which is copied straight from... * chickadee/sdl.scm: ...this! Which is now deleted. * Makefile.am (SOURCES): Add game-loop.scm, remove sdl.scm. * examples/grid.scm: Update due to API breakage. * examples/lines.scm: Ditto. * examples/nine-patch.scm: Ditto. * examples/sprite.scm: Ditto. * examples/text.scm: Ditto. * examples/tiled.scm: Ditto. * doc/api.texi (Kernel): Update.
* Move SDL game loop implementation to its own module.David Thompson2018-08-231-1/+2
|
* math: vector: Add read syntax.David Thompson2018-08-231-1/+1
| | | | | | | | | * 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-5/+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.
* examples: sprite: Quit the demo when close button is pressed.David Thompson2017-01-241-0/+1
|
* Add basic sprite example.David Thompson2017-01-231-0/+17