summaryrefslogtreecommitdiff
path: root/2d/repl
Commit message (Collapse)AuthorAgeFilesLines
* Integrate cooperative REPL server.David Thompson2014-03-082-415/+0
| | | | | | | | | * 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.
* Remove dynamic scoping of agendas.David Thompson2014-02-061-3/+2
| | | | | | | | | | | | | | | | * 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 docstring.David Thompson2014-01-131-2/+2
| | | | * 2d/repl/repl.scm (add-to-repl-mvar): Fix.
* Run REPL metacommands in the main thread, too.David Thompson2014-01-131-1/+7
| | | | * 2d/repl/repl.scm: Fix bug.
* Clean up custom REPL code.David Thompson2014-01-121-15/+12
| | | | * 2d/repl/repl.scm (add-to-repl-mvar, run-repl): Cleanup.
* Run REPL even when game is paused.David Thompson2014-01-091-17/+20
| | | | | | * 2d/repl/repl.scm (add-to-repl-mvar): New procedure. (poll-interval): New variable. (flush-repl): Schedule in paused-agenda.
* Factor REPL out of main loop.David Thompson2014-01-091-3/+34
| | | | | | | | | * 2d/game.scm (start-game-loop): Don't spawn REPL. (update-and-render, tick): Don't run REPL. (run-repl-thunk, run-repl): Move. * 2d/repl/repl.scm: (run-repl-thunk, flush-repl): Add. (flush-repl): Schedule REPL to be run within main loop.
* Merge game-loop module with game module.David Thompson2013-11-041-1/+1
|
* Update mvars module.David Thompson2013-09-041-2/+2
| | | | | | | | There were some issues with the original version that Mark Weaver has fixed. This also resolves an issue where mvars was unusable on Guile versions less than 2.0.9 because of a docstring on case-lambda.
* Add some documentation.David Thompson2013-09-021-2/+4
|
* Pass along the *repl-stack* fluid so that nested REPLs work right.David Thompson2013-09-021-1/+2
|
* Move both mvars into the repl module.David Thompson2013-09-021-4/+5
|
* Execute REPL thunks in the context of the main game thread.David Thompson2013-09-021-5/+23
|
* Add custom REPL server modules.David Thompson2013-07-312-0/+357
These are slightly modified versions of the ones that come with Guile.