| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
* sly/agenda.scm (%schedule): Return unspecified.
|
|
|
|
|
| |
* sly/transform.scm (transform*): Use a single array to accumulate
result.
|
|
|
|
|
| |
* AUTHORS: New file.
* examples/2048/2048: Add copyright info for Jordan Russel.
|
|
|
|
|
|
|
|
|
| |
* sly/game.scm (tick-interval, max-ticks-per-frame): Remove them.
(draw, update, alpha, frame-sleep): Move within start-game-loop
closure.
(interval): New procedure.
(start-game-loop): Add tick-rate, frame-rate, and max-ticks-per-frame
keyword arguments.
|
|
|
|
|
|
| |
* examples/2048/2048 (board-win?): Check the board passed in, not a new one.
(board-insert): Simplify.
(replace-at): New procedure.
|
|
|
|
| |
* sly/lru-cache.scm: Delete it.
|
|
|
|
|
|
| |
* sly/font.scm (%label-text, %label-position, %label-color): New
procedures.
(label-text, label-position, label-color): Use signal-ref-maybe.
|
|
|
|
|
|
|
| |
* sly/sprite.scm (%sprite-position, %sprite-scale, %sprite-rotation,
%sprite-color): New procedures.
(sprite-position, sprite-scale, sprite-rotation, sprite-color): Use
signal-ref-maybe.
|
|
|
|
| |
* examples/transition.scm: New file.
|
|
|
|
| |
* sandbox: s/vector2/vector/
|
|
|
|
|
| |
* sly/transition.scm: New file.
* Makefile.am (SOURCES): Add it.
|
|
|
|
| |
* sly/signal.scm (signal-drop-repeats): New procedure.
|
|
|
|
| |
* sly/color.scm (color-scale): New procedure.
|
|
|
|
| |
* sly/math.scm (pi/2): New variable.
|
| |
|
|
|
|
| |
* README.org (Dependencies): Change guile version to 2.0.11.
|
|
|
|
|
| |
* sly/config.scm: Delete it.
* .gitignore: Add sly/config.scm.
|
|
|
|
| |
Massive find/replace job.
|
|
|
|
| |
* 2d/window.scm (window-size): Fix improper use of vector literal.
|
|
|
|
| |
* 2d/transform (transform-position): Delete it.
|
|
|
|
| |
* 2d/transform.scm (translate): Support 3D vector as argument.
|
|
|
|
| |
* 2d/transform.scm (scale): Support 3D vectors and scalars as arguments.
|
|
|
|
|
|
| |
* 2d/transform.scm (make-transform*): Delete it.
(transform-translate, transform-scale): Rename.
(translate, scale): New procedures.
|
|
|
|
|
|
|
| |
* 2d/transform.scm (rotate-x, rotate-y, rotate-z): New
procedures.
(transform-rotate): Renamed.
(make-transform*): Use rotate-z for now.
|
|
|
|
| |
* README.org: Replace references to vector2 with vectors.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 2d/vector2.scm: Delete it.
* 2d/vector.scm: New file.
* Makefile.am (SOURCES): s/vector2/vector.
* 2d/font.scm:
* 2d/keyboard.scm:
* 2d/mouse.scm:
* 2d/rect.scm:
* 2d/shader.scm:
* 2d/sprite.scm:
* 2d/texture.scm:
* 2d/transform.scm:
* 2d/window.scm:
* examples/2048/2048:
* examples/animation.scm:
* examples/coroutine.scm:
* examples/font.scm:
* examples/particles.scm:
* examples/simple.scm:
* examples/tilemap.scm: Use vectors instead of defunct vector2.
|
|
|
|
| |
* 2d/vector2.scm (v=): New procedure.
|
|
|
|
|
| |
* 2d/vector2.scm (vscale): Delete it.
(v*): Add support for scalar multiplication.
|
|
|
|
| |
* 2d/transform.scm (perspective-projection): New procedure.
|
|
|
|
| |
* 2d/transform.scm (transform-translate): Correct matrix.
|
|
|
|
|
| |
* 2d/shader.scm (shader-program-attribute-location): Rename.
(attribute-location): Memoize.
|
|
|
|
|
|
|
| |
* 2d/helpers.scm (memoize): New procedure.
* 2d/shader.scm (uniform-location): memoize.
(uniform-set!): Pass symbol instead of string.
|
|
|
|
|
|
|
| |
* 2d/shader.scm (load-shader-procedure): New procedure.
* 2d/font.scm:
* 2d/sprite.scm: Use it.
|
|
|
|
|
| |
* 2d/shader.scm (make-shader-program): Change parameter list.
(vertex-shader?, fragment-shader?): New procedures.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Add pre-inst-env as config file.
* pre-inst-env.in: New file.
* 2d/config.scm.in (%pkgdatadir): Use GUILE_2D_PKGDATADIR environment
variable, if defined.
* README.org: Document pre-inst-env script.
* .gitignore: Ignore pre-inst-env.
|
|
|
|
| |
* sandbox: Use start/stop-game-loop procedures.
|
|
|
|
| |
* 2d/transform.scm (make-transform*): New procedure.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 2d/sprite.scm (<sprite>): Make immutable.
(set-sprite-drawable!, set-sprite-position!, set-sprite-scale!)
(set-sprite-rotation!, set-sprite-color!, set-sprite-anchor!): Delete.
(set-sprite-drawable, set-sprite-position, set-sprite-scale)
(set-sprite-rotation, set-sprite-color, set-sprite-anchor): New
procedures.
* examples/coroutine.scm:
* examples/particles.scm: Use immutable sprite setters.
|
| |
|
|
|
|
|
|
| |
* Makefile.am (SOURCES): Add it.
* 2d/live-reload.scm: New module.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 2d/agenda.scm (current-agenda): New variable.
(with-agenda): New macro.
(agenda-time, tick-agenda!, clear-agenda!, schedule)
(schedule-interval, schedule-each, wait): Remove agenda parameter.
* 2d/game.scm (game-agenda): Delete it.
(update): Tick current agenda.
* 2d/helpers.scm (define-guardian): Remove agenda argument.
* 2d/repl.scm (start-2d-repl): Remove agenda argument to schedule-each.
* 2d/signal.scm (signal-sample, signal-delay, signal-throttle): Remove
agenda parameter.
* 2d/sprite.scm:
* examples/common.scm:
* examples/coroutine.scm:
* examples/font.scm:
* examples/particles.scm: Remove mention of game-agenda.
* README.org: Update example snippets.
|
|
|
|
|
| |
* 2d/rect.scm (make-rect): Use case-lambda to accept four numbers or two
vector2s.
|
|
|
|
| |
* 2d/transform.scm (transform-position): New procedure.
|
|
|
|
|
| |
* 2d/transform.scm (translate, scale, rotate): Renamed.
(transform-translate, transform-scale, transform-rotate): New names.
|
|
|
|
| |
* 2d/rect.scm (null-rect): New variable.
|
|
|
|
|
|
| |
This is embarrassing.
* 2d/game.scm (update): Actually use the iterative inner procedure.
|
|
|
|
| |
* 2d/game.scm (alpha): Clamp value to [0, 1].
|
|
|
|
|
| |
* 2d/game.scm (max-ticks-per-frame): New variable
(update): Limit ticks to the value of max-ticks-per-frame.
|