| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|