summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* examples: Update 2048.David Thompson2014-12-062-10/+5
| | | | | | * examples/2048/2048: Delete. * examples/2048/2048.scm: New file. * examples/Makefile.am (examples_DATA): Add new file. Remove old one.
* examples: Add minesweeper clone.David Thompson2014-12-0616-2/+417
| | | | | | | * examples/mines/mines.scm: New file. * examples/mines/images/*: New files. * examples/Makefile.am (examples_DATA): Add 'mines.scm'. (image_DATA): Add images.
* examples: Update Makefile.David Thompson2014-11-301-4/+6
| | | | | | * examples/Makefile.am (examples_DATA): Add missing examples. Remove old ones. (image_DATA): Add 2048's image asset.
* examples: Delete particles example.David Thompson2014-11-301-84/+0
| | | | | | It's not a real particle system anyway. * examples/particle.scm: Delete.
* examples: Update tile map example.David Thompson2014-11-301-37/+32
| | | | * examples/tilemap.scm: Update.
* examples: Delete scene graph example.David Thompson2014-11-301-181/+0
| | | | | | Every example is a scene graph example! * examples/scene-graph.scm: Delete.
* examples: Delete transition example.David Thompson2014-11-301-45/+0
| | | | | | Made redundant by animation example. * examples/transition.scm: Delete.
* examples: Update joystick example.David Thompson2014-11-301-45/+42
|
* examples: Update font example.David Thompson2014-11-301-15/+26
| | | | * examples/font.scm: Update.
* examples: Delete coroutine example.David Thompson2014-11-301-56/+0
| | | | | | Coroutines are now more of an implementation detail. * examples/coroutine.scm: Delete.
* examples: Update a few example programs.David Thompson2014-11-304-73/+90
| | | | | | | * examples/2048/2048: Update. * examples/animation.scm: Likewise. * examples/common.scm: Likewise. * examples/simple.scm: Likewise.
* examples: Update 2048.David Thompson2014-11-301-27/+29
| | | | * examples/2048/2048: Use new group/model procedures.
* examples: Update 2048.David Thompson2014-11-301-129/+97
| | | | * examples/2048/2048: Update to use new Sly API.
* render: Move font module to sly/render directory.David Thompson2014-11-082-2/+2
| | | | | | | | * sly/font.scm: Delete. * sly/render/font.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old one. * examples/font.scm: Use (sly render font). * examples/joystick.scm: Likewise.
* render: Move color module to sly/render directory.David Thompson2014-11-084-4/+4
| | | | | | | | | | | | | | | | | | * sly/color.scm: Delete. * sly/render/color.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old one. * sly/font.scm: Use (sly render color) module. * sly/render/camera.scm: Likewise. * sly/render/mesh.scm: Likewise. * sly/render/shader.scm: Likewise. * sly/render/sprite.scm: Likewise. * sly/render/texture.scm: Likewise. * sly/render/vertex-array.scm: Likewise. * sly/transition.scm: Likewise. * examples/font.scm: Likewise. * examples/simple.scm: Likewise. * examples/tilemap.scm: Likewise. * examples/transition.scm: Likewise.
* input: Move joystick module to sly/input directory.David Thompson2014-11-081-1/+1
| | | | | | | * sly/joystick.scm: Delete. * sly/input/joystick.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old one. * examples/joystick.scm: Use (sly input joystick) module.
* input: Move mouse module to sly/input directory.David Thompson2014-11-081-1/+1
| | | | | | | * sly/mouse.scm: Delete. * sly/input/mouse.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old one. * examples/font.scm: Use (sly input mouse).
* input: Move keyboard module to sly/input directory.David Thompson2014-11-082-2/+2
| | | | | | | | * sly/keyboard.scm: Delete. * sly/input/keyboard.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old file. * examples/common.scm: Use (sly input keyboard). * examples/tilemap.scm: Likewise.
* math: Move rect module to sly/math directory.David Thompson2014-11-081-1/+1
| | | | | | | | * sly/rect.scm: Delete. * sly/math/rect.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old one. * sly/render/camera.scm: Use (sly math rect) module. * examples/simple.scm: Likewise.
* math: Move transform module to sly/math directory.David Thompson2014-11-081-1/+1
| | | | | | | | | | | | | * sly/transform.scm: Delete. * sly/render/transform.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old one. * sly/render/camera.scm: Use (sly math transform). * sly/render/mesh.scm: Likewise. * sly/render/renderer.scm: Likewise. * sly/render/scene.scm: Likewise. * sly/render/shader.scm: Likewise. * sly/window.scm: Likewise. * examples/simple.scm: Likewise.
* render: Move scene module to sly/render directory.David Thompson2014-11-082-2/+2
| | | | | | | | * sly/scene.scm: Delete. * sly/render/scene.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old one. * examples/simple.scm: Use (sly render scene). * examples/tilemap.scm: Likewise.
* render: Move tileset module to sly/render directory.David Thompson2014-11-082-2/+2
| | | | | | | | * sly/tileset.scm: Delete. * sly/render/tileset.scm: New file. * Makefile.am (SOURCES): Add new file. Delete old one. * examples/animation.scm: Use (sly render tileset). * examples/tileset.scm: Likewise.
* render: Move sprite module to sly/render directory.David Thompson2014-11-078-8/+8
| | | | | | | | | | | | | | | * sly/sprite.scm: Delete. * sly/render/sprite.scm: New file. * Makefile.am (SOURCES): Add new file and delete old one. * sly/font.scm: Use (sly render sprite). * examples/animation.scm: Likewise. * examples/common.scm: Likewise. * examples/coroutine.scm: Likewise. * examples/joystick.scm: Likewise. * examples/particles.scm: Likewise. * examples/simple.scm: Likewise. * examples/tilemap.scm: Likewise. * examples/transition.scm: Likewise.
* render: Move texture module to sly/render directory.David Thompson2014-11-075-5/+5
| | | | | | | | | | | | | | | | | | | | * sly/texture.scm: Delete. * sly/render/texture.scm: New file. * Makefile.am (SOURCES): Add it. * sly/animation.scm: Use (sly render texture). * sly/font.scm: Likewise. * sly/mesh.scm: Likewise. * sly/render/context.scm: Likewise. * sly/render/framebuffer.scm: Likewise. * sly/render/renderer.scm: Likewise. * sly/shape.scm: Likewise. * sly/sprite.scm: Likewise. * sly/tileset.scm: Likewise. * examples/coroutine.scm: Likewise. * examples/joystick.scm: Likewise. * examples/particles.scm: Likewise. * examples/tilemap.scm: Likewise. * examples/transition.scm: Likewise.
* Rename (sly helpers) module to (sly utils).David Thompson2014-11-071-1/+1
| | | | | | | | | | | | | * sly/helpers.scm: Delete. * sly/utils.scm: New file. * Makefile.am (SOURCES): Remove old file. Add new one. * sly/render/camera.scm: s/helpers/utils/ * sly/scene.scm: Likewise. * sly/shader.scm: Likewise. * sly/sprite.scm: Likewise. * sly/texture.scm: Likewise. * sly/transform.scm: Likewise. * examples/tilemap.scm: Likewise.
* examples: Update 2048.David Thompson2014-09-221-109/+109
| | | | * examples/2048/2048: Update.
* examples: Update simple example.David Thompson2014-09-221-6/+24
| | | | * examples/simple.scm: Update.
* examples: Update tilemap example.David Thompson2014-09-101-52/+54
| | | | * examples/tilemap.scm: Update it.
* examples: Update scene-graph example.David Thompson2014-09-071-58/+62
| | | | * examples/scene-graph.scm: Update to use new scene-node DSL.
* examples: Add crate texture.David Thompson2014-09-061-0/+0
| | | | * examples/images/crate.png: New file.
* examples: Update scene graph example.David Thompson2014-09-061-54/+74
|
* Update scene graph example.David Thompson2014-08-251-28/+57
| | | | * examples/scene-graph: Update.
* Add scene graph example.David Thompson2014-08-251-0/+128
| | | | * examples/scene-graph.scm: New file.
* Use a single default shader for all meshes.David Thompson2014-08-251-1/+0
| | | | | | | | | | | | | | | | | * data/shaders/default-fragment.glsl: New file. * data/shaders/default-vertex.glsl: New file. * data/shaders/font-fragment.glsl: Delete. * data/shaders/font-vertex.glsl: Delete. * data/shaders/sprite-fragment.glsl: Delete. * data/shaders/sprite-vertex.glsl: Delete. * examples/common.scm: Remove call to enable-sprites. * sly/font.scm (font-shader): Delete. (enable-fonts): Remove shader loading. (make-label): Use default shader. * sly/shape.scm (make-cube): Make texture and shader optional keyword arguments. * sly/sprite.scm (sprite-shader, enable-sprites): Delete. (make-sprite): Make shader an optional keyword argument.
* 2048: Make it more convenient to run within Emacs.David Thompson2014-08-091-0/+4
| | | | * examples/2048/2048: Add local variable setting for compile-command.
* Add joystick module.Jordan Russell2014-08-011-0/+102
| | | | | | | | * sly/joystick.scm: New file. * examples/joystick.scm: New file. * Makefile.am (SOURCES): Add sly/joystick.scm. * TODO.org (Input): Mark as 'done'. * sly/math.scm (linear-scale): New procedure.
* Add copyright information for Jordan Russel.David Thompson2014-07-031-0/+1
| | | | | * AUTHORS: New file. * examples/2048/2048: Add copyright info for Jordan Russel.
* 2048: Fix board-win? and improve board-insert.Jordan Russell2014-07-031-12/+12
| | | | | | * examples/2048/2048 (board-win?): Check the board passed in, not a new one. (board-insert): Simplify. (replace-at): New procedure.
* Add transition example.David Thompson2014-07-021-0/+45
| | | | * examples/transition.scm: New file.
* Rename guile-2d to Sly!David Thompson2014-06-288-67/+67
| | | | Massive find/replace job.
* Replace vector2 module with a more generic vector module.David Thompson2014-06-077-49/+46
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* s/guile-2048/2048/David Thompson2014-05-212-1/+1
|
* Make sprites immutable.David Thompson2014-05-072-10/+15
| | | | | | | | | | | | | * 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.
* Add current-agenda parameter.David Thompson2014-05-044-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Rename game loop procedures and remove parameter.David Thompson2014-04-248-10/+10
| | | | | | | | | | | | | | | | | | | | | | * 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.
* Rename example file.David Thompson2014-03-311-0/+0
| | | | | | * examples/guile-2048/guile-2048: Rename. * examples/guile-2048/guile-2048.scm: New file.
* Add 2048 clone example.David Thompson2014-03-312-0/+482
| | | | | | * examples/guile-2048/guile-2048: New file. * examples/guile-2048/tile.png: New image.
* Don't load font shaders upon importing (2d font) module.David Thompson2014-03-291-0/+2
| | | | | | | * 2d/font.scm (font-shader): Set to #f initially. (enable-fonts): New procedure. * examples/font.scm: Enable fonts.
* Don't load sprite shaders upon importing (2d sprite) module.David Thompson2014-03-291-0/+3
| | | | | | | * 2d/sprite.scm (sprite-shader): Set to #f initially. (enable-sprites): New procedure. * 2d/common.scm: Enable sprites.
* Don't open window upon importing the (2d window) module.David Thompson2014-03-291-0/+1
| | | | | | * 2d/window.scm (open-window): Remove default argument. * examples/common.scm: Open a window.