summaryrefslogtreecommitdiff
path: root/examples/coroutine.scm
Commit message (Collapse)AuthorAgeFilesLines
* Add new coroutine macro.David Thompson2014-02-061-11/+9
| | | | | | | | * 2d/coroutine.scm (call-with-coroutine): New name for coroutine. (coroutine): New macro. (colambda, codefine, codefine*): Use call-with-coroutine. * examples/coroutine.scm: Use coroutine macro. * README.org: Update coroutine and agenda examples.
* Remove dynamic scoping of agendas.David Thompson2014-02-061-3/+3
| | | | | | | | | | | | | | | | * 2d/agenda.scm: (*global-agenda*, current-agenda, with-agenda): Delete. (agenda?, agenda-time): Export. (schedule-every, schedule-each): Rename schedule-every to schedule-each. (schedule-next): Delete. * 2d/game.scm: (game-agenda): New variable. (update): Tick game-agenda. * 2d/repl.scm: Use new agenda API. * 2d/sprite.scm: Use new agenda API. * 2d/time.scm: (time-every, time-each, time-delay): Change signature and use new agenda API. * examples/coroutine.scm: Use new agenda API. * examples/particles.scm: Use new agenda API.
* Fix coroutine example to actually use coroutines.David Thompson2014-01-131-7/+11
|
* Update some of the example programs to use the new API.David Thompson2014-01-101-27/+23
| | | | | | | | | | | | * 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.
* Update examples.David Thompson2013-11-041-1/+0
|
* Update examples to use new scene/stage system.David Thompson2013-11-031-12/+11
|
* Update coroutine demo.David Thompson2013-10-231-15/+17
|
* Fix broken examples due to a renamed image file. :(David Thompson2013-10-021-1/+1
| | | | Sorry to everyone that downloaded 0.1 and was annoyed!
* Update the rest of the examples to use the new declarative game stuff.David Thompson2013-09-061-38/+31
|
* Replace old vector module with new vector2 module.David Thompson2013-08-271-5/+6
|
* Update examples.David Thompson2013-08-151-10/+8
|
* Update examples.David Thompson2013-07-281-2/+2
|
* Update examples.David Thompson2013-07-221-6/+1
|
* Update examples to reflect changes in keyboard events.David Thompson2013-07-211-3/+1
|
* Use init-2d in all examples.David Thompson2013-07-171-0/+2
|
* Update coroutine example.David Thompson2013-07-171-5/+7
|
* Add coroutine example.David Thompson2013-07-151-0/+46