| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* 2d/window.scm (open-window): Remove viewport config.
* 2d/game.scm (draw): Add viewport config.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 2d/event.scm: New module.
* 2d/game.scm: Remove event handling code.
* 2d/keyboard.scm: Import (2d event) instead of (2d game).
* 2d/mouse.scm: Import (2d event) instead of (2d game).
* 2d/window.scm: Import (2d event) instead of (2d game).
|
|
|
|
|
|
| |
* 2d/agenda.scm (tick-agenda!, clear-agenda!): Add agenda param.
* 2d/game.scm (update, tick): Update usage of tick-agenda!.
|
|
|
|
| |
* 2d/game.scm (handle-event): Fix bug.
|
|
|
|
|
| |
* 2d/game.scm (paused-agenda): New variable.
(tick): Tick paused-agenda.
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
* 2d/game.scm (accumulator): New parameter.
(draw-hook): Change to arity 2.
(current-fps, accumulate-fps!, game-fps): Delete.
(game-loop, update-and-render): Drop accumulator formal parameter.
* 2d/fps.scm: New module.
|
|
|
|
|
|
| |
* 2d/game.scm (handle-events, read-input): Rename it.
(event-handlers, register-event-handler, handle-event): Use a hash table
instead of an alist.
|
|
|
|
|
|
|
|
| |
* 2d/game.scm (%state): Replace with game-loop-status.
(game-loop-status): New parameter.
(run-game-loop): Set status to running.
(game-running?, game-paused?, pause-game, resume-game, quit-game): Use
parameter.
|
|
|
|
|
| |
* 2d/game.scm (run-game-loop): Compute tick-interval.
(update, update-and-render, tick): Use tick-interval parameter.
|
|
|
|
|
|
|
| |
* 2d/game.scm (run-game, run-game-loop): Rename and remove draw callback
parameter.
(draw-hook): New hook.
(draw): Run draw hook.
|
|
|
|
|
|
|
|
| |
* 2d/game.scm (game-draw): Add signal.
(run-game): Remove update callback.
(draw): Use alpha value.
(update): Remove call to obsolete update callback.
(update-and-render): Pass alpha value.
|
|
|
|
|
|
|
|
|
|
|
| |
* 2d/game.scm (register-event-handler): New procedure.
(mouse-*, key-*, window-*): Remove signals.
* 2d/window.scm (window-size): New signal.
* 2d/mouse.scm: New module.
* 2d/keyboard.scm: New module.
|
|
|
|
|
| |
* 2d/game.scm (key-directions, key-wasd): New procedures.
(arrows, key-arrows): Renamed.
|
|
|
|
|
|
| |
* 2d/signals.scm (make-signal): Make transformer optional.
(signal-identity): Delete it.
(signal-*): Use new constructor.
|
|
|
|
| |
* 2d/game.scm (arrows): New signal.
|
|
|
|
| |
* 2d/game.scm: New signals and refactor.
|
|
|
|
|
|
|
|
|
| |
* 2d/window.scm (<window>): New record type.
(open-window): Use window object.
(close-window): Change docstring.
* 2d/game.scm (<game>, make-game): Remove window properties.
(run-game): Remove window logic.
|
|
|
|
| |
Moving my work to another machine so this commit is ugly.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
They were inconsistent with the rest of the API.
|
| |
|
| |
|
| |
|
|
|
|
| |
module.
|
| |
|
|
|