| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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/window.scm (window-resize-hook): New hook.
|
|
|
|
| |
* 2d/font.scm: Remove font-ftgl-font from export list.
|
|
|
|
| |
* .gitignore: Ignore html docs.
|
|
|
|
|
| |
* Makefile.am (REPL_SOURCES, WRAPPER_SOURCES): New variables.
(SOURCES): Remove wildcard and list modules explicitly.
|
| |
|
|
|
|
|
|
|
| |
* 2d/audio.scm (ignore-value): New macro.
(set-sample-volume, play-sample, pause-music, resume-music)
(rewind-music, stop-music): Ignore return value.
(music-playing?, music-paused?): Add docstrings.
|
|
|
|
| |
* 2d/audio.scm: Clean up procedures.
|
|
|
|
|
|
|
| |
* 2d/window.scm (open-window, close-window): Remove open/close audio
calls.
* 2d/audio.scm: Open audio when module is imported.
|
| |
|
| |
|
|
|
|
| |
* 2d/README.org: More changes!
|
|
|
|
| |
* README.org: Update examples and remove obsolete stuff.
|
|
|
|
| |
* 2d/texture.scm: Remove commented code.
|
|
|
|
| |
* 2d/repl/repl.scm (add-to-repl-mvar): Fix.
|
|
|
|
| |
* 2d/repl/repl.scm: Fix bug.
|
| |
|
|
|
|
| |
* 2d/wrappers/gl.scm: Remove unused cruft.
|
|
|
|
| |
* 2d/texture.scm (draw-texture): Use color module.
|
|
|
|
| |
* 2d/repl/repl.scm (add-to-repl-mvar, run-repl): Cleanup.
|
|
|
|
| |
* 2d/helpers.scm (rgba->gl-color): Remove export.
|
|
|
|
| |
* examples/particles.scm: Update example.
|
|
|
|
| |
* examples/images/ghost.png: Delete it.
|
|
|
|
| |
* examples/images/p1_front.png: New sprite.
|
|
|
|
| |
* 2d/examples/animation.scm: Updated.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* 2d/agenda.scm (tick-agenda!, clear-agenda!): Add agenda param.
* 2d/game.scm (update, tick): Update usage of tick-agenda!.
|
|
|
|
|
| |
* 2d/mouse.scm (mouse-move-hook, mouse-press-hook)
(mouse-click-hook): New hooks.
|
|
|
|
| |
* 2d/keyboard.scm (key-press-hook, key-release-hook): New hooks.
|
|
|
|
| |
* 2d/game.scm (handle-event): Fix bug.
|
|
|
|
|
|
| |
* 2d/repl/repl.scm (add-to-repl-mvar): New procedure.
(poll-interval): New variable.
(flush-repl): Schedule in paused-agenda.
|
|
|
|
|
| |
* 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/agenda.scm (make-time-segment, wait): Change docstrings.
|
|
|
|
| |
* 2d/agenda.scm (make-time-segment, wait): Use cut.
|
|
|
|
|
| |
* 2d/agenda.scm (update-agenda, tick-agenda!): Rename.
(clear-agenda, clear-agenda!): Rename.
|
|
|
|
| |
* 2d/agenda.scm: Export *global-agenda* and current-agenda.
|
|
|
|
|
|
|
|
| |
* 2d/agenda.scm (agenda-schedule, schedule): Rename.
(agenda-schedule-interval, schedule-interval): Rename.
(schedule-next, schedule-every): New procedures.
* 2d/sprite.scm: Use schedule-every.
* 2d/time.scm (time-every): Use schedule-interval.
|
|
|
|
|
|
| |
* 2d/agenda.scm (*current-agenda*, current-agenda): Rename and make
parameter.
(*global-agenda*, global-agenda): Rename it.
|
| |
|
|
|
|
|
| |
* 2d/signals.scm (signal-connections): Delete it.
(signal-inputs, signal-outputs): New procedures.
|
|
|
|
|
|
|
|
| |
* 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/time.scm (time-interval): Rename to time-every.
(time-every): Use make-root-signal.
(time-each): New name for the old time-every.
(time-delay): Rewrite it.
|
|
|
|
|
| |
* 2d/keyboard.scm (key-last-down, key-last-up, key-down?)
(key-directions): Rewrite signals.
|