summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Don't start the REPL server upon importing (2d repl).David Thompson2014-03-101-0/+2
| | | | | | * 2d/repl.scm (start-2d-repl): New procedure. * examples/common.scm: Start the REPL server. * sandbox: Start the REPL server.
* Change license to GPLv3+.David Thompson2014-03-088-1/+136
|
* Update font example.David Thompson2014-03-081-19/+5
| | | | * examples/font.scm: Remove GC counter.
* Integrate cooperative REPL server.David Thompson2014-03-081-4/+2
| | | | | | | | | * 2d/repl.scm: New file. * 2d/repl/repl.scm: Delete it. * 2d/repl/server.scm: Delete it. * Makfile.am (REPL_SOURCES): Delete it. (SOURCES): Add '2d/repl.scm'. * examples/common.scm: Use cooperative REPL module.
* Remove shader example.David Thompson2014-02-174-59/+0
| | | | | | | | * examples/Makefile.am (examples_DATA): Remove 'shader.scm'. (shaderdir, shader_DATA): Remove. * examples/shader.scm: Delete file. * examples/shaders/fragment-shader.glsl: Delete file. * examples/shaders/vertex-shader.glsl: Delete file.
* Add missing example module.David Thompson2014-02-171-0/+1
| | | | * examples/common.scm: Import (2d signal).
* Update font example.David Thompson2014-02-172-28/+21
| | | | | * examples/common.scm: Change format for displaying FPS in console. * examples/font.scm: Use new signal API generating labels.
* Remove example font from Makefile.am.David Thompson2014-02-171-3/+0
| | | | * examples/Makefile.am (fontdir, font_DATA): Delete them.
* Remove sprite batch from tilemap example.David Thompson2014-02-161-7/+5
| | | | * examples/tilemap.scm: Remove references to sprite batches.
* Rewrite font module.David Thompson2014-02-163-10/+42
| | | | | | | | | | | | | | FTGL has been dropped in favor of SDL_ttf. * 2d/font: Rewrite everything! * 2d/wrappers/ftgl.scm: Delete it. * configure.ac: Check for SDL_ttf. * data/Makefile.am (shaders_DATA): Add font shaders. * data/shaders/font-fragment.glsl: New shader. * data/shaders/font-vertex.glsl: New shader. * examples/font.scm: Rewrite font example. * examples/fonts/AUTHORS: Delete it. * examples/fonts/Boxy-Bold.ttf: Delete it.
* Remove sprite batch from particles example.David Thompson2014-02-161-8/+6
| | | | | | | This slows down the demo considerably, but sprite batches need to be rewritten in order to be actually performant and of real value. * examples/particle.scm (batch): Delete it.
* Print FPS to stdout in examples.David Thompson2014-02-151-1/+9
| | | | * examples/common.scm: Use (2d fps) module.
* Remove AUTOMAKE_OPTIONS from examples/Makefile.am.David Thompson2014-02-111-2/+0
| | | | * examples/Makefile.am (AUTOMAKE_OPTIONS): Remove it.
* Add examples Makefile.David Thompson2014-02-091-0/+27
| | | | | | * Makefile.am (SUBDIRS): Add 'examples'. * configure.ac (AC_CONFIG_FILES): Add 'examples/Makefile'. * examples/Makefile.am: New file.
* Add shader module.David Thompson2014-02-093-0/+53
| | | | | | | | * 2d/shader.scm: New module. * Makefile.am: Add 2d/shader.scm to SOURCES. * examples/shader.scm: New example. * examples/shaders/fragment-shader.glsl: New shader. * examples/shaders/vertex-shader.glsl: New shader.
* Add new coroutine macro.David Thompson2014-02-061-11/+9
| | | | | | | | * 2d/coroutine.scm (call-with-coroutine): New name for coroutine. (coroutine): New macro. (colambda, codefine, codefine*): Use call-with-coroutine. * examples/coroutine.scm: Use coroutine macro. * README.org: Update coroutine and agenda examples.
* Remove dynamic scoping of agendas.David Thompson2014-02-062-4/+4
| | | | | | | | | | | | | | | | * 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.
* Close example programs when window is closed.David Thompson2014-01-261-0/+4
| | | | * examples/common.scm: Add window close hook.
* Remove obsolete examples.David Thompson2014-01-204-233/+0
|
* Update example image authors file.David Thompson2014-01-202-3/+5
|
* Fix coroutine example to actually use coroutines.David Thompson2014-01-131-7/+11
|
* Update particle example.David Thompson2014-01-121-38/+25
| | | | * examples/particles.scm: Update example.
* Remove ghost sprite.David Thompson2014-01-121-0/+0
| | | | * examples/images/ghost.png: Delete it.
* Add example sprite.David Thompson2014-01-111-0/+0
| | | | * examples/images/p1_front.png: New sprite.
* Update animation example.David Thompson2014-01-101-14/+7
| | | | * 2d/examples/animation.scm: Updated.
* Update some of the example programs to use the new API.David Thompson2014-01-105-69/+55
| | | | | | | | | | | | * 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.
* Start working on pong example.David Thompson2013-12-023-0/+82
| | | | Doesn't work yet. Just committing what I have so far.
* Use signal-fold in example.David Thompson2013-12-021-7/+6
|
* Update example.David Thompson2013-12-011-14/+15
|
* Update example.David Thompson2013-12-011-23/+43
|
* Add temporary rewrite-test example.David Thompson2013-11-301-0/+32
|
* Update examples.David Thompson2013-11-048-8/+0
|
* Update examples to use new scene/stage system.David Thompson2013-11-038-104/+122
|
* Revert "Export scene type tag."David Thompson2013-11-031-8/+9
| | | | This reverts commit d1ecb21fca03cdd0e9360a4f1b88c7e05a9354e2.
* Export scene type tag.David Thompson2013-11-031-9/+8
|
* Update action and animation example to use new stage variables.David Thompson2013-10-302-11/+7
|
* Update font demo.David Thompson2013-10-231-8/+12
|
* Update coroutine demo.David Thompson2013-10-231-15/+17
|
* Update actions example.David Thompson2013-10-231-13/+16
|
* Update animation demo.David Thompson2013-10-231-8/+14
|
* Fix broken examples due to a renamed image file. :(David Thompson2013-10-023-3/+3
| | | | Sorry to everyone that downloaded 0.1 and was annoyed!