| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* 2d/game.scm (frame-sleep): New procedure.
(game-loop): Use frame-sleep.
|
|
|
|
|
|
|
| |
* 2d/game.scm (game-loop-status, game-running?, game-paused?)
(pause-game, resume-game, paused-agenda): Delete.
(run-game-loop): Call game loop with prompt.
(quit-game): Abort to game loop prompt.
|
|
|
|
|
|
|
| |
* 2d/game.scm (accumulator, update-and-render, tick) Delete.
(run-game-loop): Remove accumulator parameterization.
(game-loop): Use lag variable instead of accumulator.
(update, alpha): Add lag as formal parameter.
|
| |
|
| |
|
|
|
|
|
|
| |
* 2d/font.scm: Import (2d signal).
* 2d/game.scm: Import (2d signal).
* 2d/sprite.scm: Import (2d signal).
|
|
|
|
| |
* 2d/game.scm (draw): Remove matrix mode calls.
|
|
|
|
| |
* 2d/game.scm: Don't import (2d game), silly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
* 2d/game.scm: Remove (2d coroutine) and (2d vector2) imports.
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|