Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Allow signals to be redefined at the REPL and "just work." | David Thompson | 2013-12-29 | 2 | -72/+91 | |
| | ||||||
* | Turn signal objects into doubly-linked list nodes. | David Thompson | 2013-12-25 | 1 | -22/+35 | |
| | | | | | * 2d/signals.scm (signal-connections): Delete it. (signal-inputs, signal-outputs): New procedures. | |||||
* | Restructure game callbacks and signals. | David Thompson | 2013-12-15 | 1 | -11/+7 | |
| | | | | | | | | * 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. | |||||
* | Update time module to use new signals API. | David Thompson | 2013-12-15 | 1 | -15/+20 | |
| | | | | | | | * 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. | |||||
* | Update keyboard module to use new signals API. | David Thompson | 2013-12-15 | 1 | -19/+23 | |
| | | | | | * 2d/keyboard.scm (key-last-down, key-last-up, key-down?) (key-directions): Rewrite signals. | |||||
* | Update mouse module to use new signal API. | David Thompson | 2013-12-15 | 1 | -14/+19 | |
| | | | | | * 2d/mouse.scm (mouse-x, mouse-y): New signals. (mouse-position): Define in terms of signal-map. | |||||
* | Update window module to use new signals API. | David Thompson | 2013-12-15 | 1 | -4/+7 | |
| | | | | | * 2d/window.scm (window-width, window-height): New signals. (window-position): Define in terms of signal-map. | |||||
* | Remove duplicate export of signal-fold. | David Thompson | 2013-12-15 | 1 | -1/+0 | |
| | | | | * 2d/signals.scm: Remove duplicate export. | |||||
* | Fix signal-do not connection to input signal. | David Thompson | 2013-12-15 | 1 | -1/+2 | |
| | | | | * 2d/signals.scm (signal-do): Fix bug. | |||||
* | Reverse arguments to signal-fold proc. | David Thompson | 2013-12-15 | 1 | -1/+1 | |
| | | | | * 2d/signals.scm (signal-fold): Reverse callback args. | |||||
* | Fix signal-map not connecting to all input signals. | David Thompson | 2013-12-15 | 1 | -4/+6 | |
| | | | | * 2d/signals.scm (signal-map): Fix bug. | |||||
* | Rewrite signals module. | David Thompson | 2013-12-15 | 1 | -193/+134 | |
| | | | | * 2d/signals.scm: Rewrite module. | |||||
* | Remove signal-and and signal-or. | David Thompson | 2013-12-12 | 1 | -31/+0 | |
| | | | | * 2d/signals.scm (signal-and, signal-or): Remove them. | |||||
* | Add signal-liftn procedure. | David Thompson | 2013-12-12 | 1 | -0/+9 | |
| | | | | * 2d/signals.scm (signal-liftn): New procedure. | |||||
* | Make init a non-keyword argument in make-signal procedure. | David Thompson | 2013-12-12 | 4 | -9/+8 | |
| | | | | | | | * 2d/signals.scm (make-signal): Change parameter list. * 2d/mouse.scm (mouse-position): Remove #:init keyword. * 2d/time.scm (time-interval, time-delay): Remove #:init keyword. * 2d/window.scm (window-size): Remove #:init keyword. | |||||
* | Add signal-do procedure. | David Thompson | 2013-12-11 | 1 | -1/+13 | |
| | | | | * 2d/signals.scm (signal-do): New procedure. | |||||
* | Open window when (2d window) is imported. | David Thompson | 2013-12-03 | 1 | -0/+7 | |
| | | | | * 2d/window.scm: Open window on import. | |||||
* | Change signal-merge to accept an arbitrary amount of signals. | David Thompson | 2013-12-03 | 1 | -8/+5 | |
| | | | | * 2d/signals.scm (signal-merge): Accept many signals. | |||||
* | Add signal-when and signal-unless. | David Thompson | 2013-12-02 | 1 | -1/+27 | |
| | | | | * 2d/signals.scm (signal-when, signal-unless): New procedures. | |||||
* | Explicitly set initial value for time-delay signal. | David Thompson | 2013-12-02 | 1 | -0/+1 | |
| | | | | * 2d/time.scm (time-delay): Set initial signal value. | |||||
* | Use signal-receive! instead of signal-set! in signal-connect! | David Thompson | 2013-12-02 | 1 | -1/+1 | |
| | | | | * 2d/signals.scm (signal-connect!): Use signal-receive! | |||||
* | Start working on pong example. | David Thompson | 2013-12-02 | 3 | -0/+82 | |
| | | | | Doesn't work yet. Just committing what I have so far. | |||||
* | Use signal-fold in example. | David Thompson | 2013-12-02 | 1 | -7/+6 | |
| | ||||||
* | Add clamp procedure. | David Thompson | 2013-12-02 | 1 | -1/+9 | |
| | | | | * 2d/math.scm (clamp): New procedure. | |||||
* | Define signal-count in terms of signal-fold. | David Thompson | 2013-12-02 | 1 | -4/+3 | |
| | | | | * 2d/signals.scm (signal-count): Rewrite. | |||||
* | Define signal-constant in terms of signal-lift. | David Thompson | 2013-12-02 | 1 | -7/+5 | |
| | | | | * 2d/signals.scm (signal-constant): Rewrite. | |||||
* | Change parameters for time-interval and time-every. | David Thompson | 2013-12-02 | 1 | -9/+9 | |
| | | | | * 2d/time.scm (time-interval, time-every): Add signal parameter. | |||||
* | Add signal-fold procedure. | David Thompson | 2013-12-02 | 1 | -0/+10 | |
| | | | | * 2d/signals.scm (signal-fold): New procedure. | |||||
* | Update example. | David Thompson | 2013-12-01 | 1 | -14/+15 | |
| | ||||||
* | Move event handlers and signals into their own modules. | David Thompson | 2013-12-01 | 4 | -70/+155 | |
| | | | | | | | | | | | * 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. | |||||
* | Delete obsolete modules. | David Thompson | 2013-12-01 | 4 | -454/+0 | |
| | | | | | | | * 2d/actions.scm: Delete it. * 2d/observer.scm: Delete it. * 2d/scene.scm: Delete it. * 2d/stage.scm: Delete it. | |||||
* | Use dynamic-wind in with-window form. | David Thompson | 2013-12-01 | 1 | -4/+4 | |
| | | | | * 2d/window.scm (with-window): Use dynamic-wind. | |||||
* | Add key-directions and key-wasd procedures. | David Thompson | 2013-12-01 | 1 | -11/+17 | |
| | | | | | * 2d/game.scm (key-directions, key-wasd): New procedures. (arrows, key-arrows): Renamed. | |||||
* | Add time signals. | David Thompson | 2013-12-01 | 1 | -0/+49 | |
| | | | | * 2d/time.scm: New module. | |||||
* | Update example. | David Thompson | 2013-12-01 | 1 | -23/+43 | |
| | ||||||
* | Fix signal coroutine. | David Thompson | 2013-12-01 | 1 | -8/+3 | |
| | ||||||
* | Make signal transformer an optional keyword argument. | David Thompson | 2013-12-01 | 2 | -70/+80 | |
| | | | | | | * 2d/signals.scm (make-signal): Make transformer optional. (signal-identity): Delete it. (signal-*): Use new constructor. | |||||
* | Make signal-set! a coroutine. | David Thompson | 2013-12-01 | 1 | -2/+8 | |
| | | | | | * 2d/signals.el (signal-set!): Make coroutine. (signal-set-and-propagate!): New procedure. | |||||
* | Rename signal-listeners to signal-connectors. | David Thompson | 2013-12-01 | 1 | -10/+10 | |
| | | | | * 2d/signals.scm: Replace "listeners" with "connectors". | |||||
* | Add filters to signals to stop propagation. | David Thompson | 2013-12-01 | 1 | -6/+22 | |
| | | | | | * 2d/signals.scm (signal-filter, signal-keep?, signal-receive!): New procedures. | |||||
* | Add arrows signal. | David Thompson | 2013-12-01 | 1 | -0/+12 | |
| | | | | * 2d/game.scm (arrows): New signal. | |||||
* | Add signal-lift3 and signal-lift4. | David Thompson | 2013-12-01 | 1 | -0/+21 | |
| | | | | * 2d/signals.scm (signal-lift3, signal-lift4): New procedures. | |||||
* | Refactor game loop code and improve event signals. | David Thompson | 2013-12-01 | 1 | -110/+96 | |
| | | | | * 2d/game.scm: New signals and refactor. | |||||
* | Add with-window form. | David Thompson | 2013-11-30 | 2 | -28/+43 | |
| | | | | | | | | | * 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. | |||||
* | Allow signals to be used for certain sprite properties. | David Thompson | 2013-11-30 | 1 | -6/+7 | |
| | | | | | * 2d/sprite.scm (update-sprite-vertices!) (draw-sprite-batched): Use signals. | |||||
* | Add signal-ref-maybe procedure. | David Thompson | 2013-11-30 | 1 | -1/+9 | |
| | | | | * 2d/signals.scm (signal-ref-maybe): New procedure. | |||||
* | Add temporary rewrite-test example. | David Thompson | 2013-11-30 | 1 | -0/+32 | |
| | ||||||
* | Remove stage stuff from game module and use signals. | David Thompson | 2013-11-30 | 2 | -89/+92 | |
| | | | | Moving my work to another machine so this commit is ugly. | |||||
* | Refactor signals module. | David Thompson | 2013-11-29 | 1 | -68/+57 | |
| | | | | * 2d/signals.scm: Refactor. | |||||
* | Add signals module for functional reactive programming. | David Thompson | 2013-11-29 | 1 | -0/+208 | |
| | | | | * 2d/signals.scm: New module. |