summaryrefslogtreecommitdiff
path: root/examples/common.scm
Commit message (Collapse)AuthorAgeFilesLines
* Rename guile-2d to Sly!David Thompson2014-06-281-10/+10
| | | | Massive find/replace job.
* Add current-agenda parameter.David Thompson2014-05-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * 2d/agenda.scm (current-agenda): New variable. (with-agenda): New macro. (agenda-time, tick-agenda!, clear-agenda!, schedule) (schedule-interval, schedule-each, wait): Remove agenda parameter. * 2d/game.scm (game-agenda): Delete it. (update): Tick current agenda. * 2d/helpers.scm (define-guardian): Remove agenda argument. * 2d/repl.scm (start-2d-repl): Remove agenda argument to schedule-each. * 2d/signal.scm (signal-sample, signal-delay, signal-throttle): Remove agenda parameter. * 2d/sprite.scm: * examples/common.scm: * examples/coroutine.scm: * examples/font.scm: * examples/particles.scm: Remove mention of game-agenda. * README.org: Update example snippets.
* Rename game loop procedures and remove parameter.David Thompson2014-04-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | * 2d/game.scm (tick-interval): No longer a parameter. (run-game-loop, start-game-loop): Rename. (quit-game, stop-game-loop): Rename. * examples/animation.scm: Use start-game-loop and stop-game-loop. * examples/common.scm: Use start-game-loop and stop-game-loop. * examples/coroutine.scm: Use start-game-loop and stop-game-loop. * examples/font.scm: Use start-game-loop and stop-game-loop. * examples/guile-2048/guile-2048.scm: Use start-game-loop and stop-game-loop. * examples/particles.scm: Use start-game-loop and stop-game-loop. * examples/simple.scm: Use start-game-loop and stop-game-loop. * examples/tilemap.scm: Use start-game-loop and stop-game-loop.
* Don't load sprite shaders upon importing (2d sprite) module.David Thompson2014-03-291-0/+3
| | | | | | | * 2d/sprite.scm (sprite-shader): Set to #f initially. (enable-sprites): New procedure. * 2d/common.scm: Enable sprites.
* Don't open window upon importing the (2d window) module.David Thompson2014-03-291-0/+1
| | | | | | * 2d/window.scm (open-window): Remove default argument. * examples/common.scm: Open a window.
* Don't start the REPL server upon importing (2d repl).David Thompson2014-03-101-0/+2
| | | | | | * 2d/repl.scm (start-2d-repl): New procedure. * examples/common.scm: Start the REPL server. * sandbox: Start the REPL server.
* Change license to GPLv3+.David Thompson2014-03-081-0/+17
|
* Integrate cooperative REPL server.David Thompson2014-03-081-4/+2
| | | | | | | | | * 2d/repl.scm: New file. * 2d/repl/repl.scm: Delete it. * 2d/repl/server.scm: Delete it. * Makfile.am (REPL_SOURCES): Delete it. (SOURCES): Add '2d/repl.scm'. * examples/common.scm: Use cooperative REPL module.
* Add missing example module.David Thompson2014-02-171-0/+1
| | | | * examples/common.scm: Import (2d signal).
* Update font example.David Thompson2014-02-171-2/+1
| | | | | * examples/common.scm: Change format for displaying FPS in console. * examples/font.scm: Use new signal API generating labels.
* Print FPS to stdout in examples.David Thompson2014-02-151-1/+9
| | | | * examples/common.scm: Use (2d fps) module.
* Close example programs when window is closed.David Thompson2014-01-261-0/+4
| | | | * examples/common.scm: Add window close hook.
* Update some of the example programs to use the new API.David Thompson2014-01-101-0/+8
* 2d/examples/common.scm: New file. * 2d/examples/coroutine.scm: Updated. * 2d/examples/font.scm: Updated. * 2d/examples/simple.scm: Updated. * 2d/examples/tilemap.scm: Updated.