summaryrefslogtreecommitdiff
path: root/examples/particles.scm
Commit message (Collapse)AuthorAgeFilesLines
* render: particles: Allow finer control over particle emission.David Thompson2016-06-201-5/+7
| | | | | | | | | * sly/render/particles.scm (<particle-system>)[emit-rate]: Delete. [emit-interval, emit-count]: New fields. (make-particle-system): Delete emit-rate argument. Add emit-interval and emit-count arguments. (render-particles): Rewrite to use emit-rate and emit-count. * examples/particles.scm: Update example to use new API.
* render: Add particle effects.David Thompson2016-05-281-0/+59
| | | | | | * sly/render/particles.scm: New file. * Makefile.am (SOURCES): Add it. * examples/particles.scm: New file.
* examples: Delete particles example.David Thompson2014-11-301-84/+0
| | | | | | It's not a real particle system anyway. * examples/particle.scm: Delete.
* render: Move sprite module to sly/render directory.David Thompson2014-11-071-1/+1
| | | | | | | | | | | | | | | * 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-071-1/+1
| | | | | | | | | | | | | | | | | | | | * 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 guile-2d to Sly!David Thompson2014-06-281-7/+7
| | | | Massive find/replace job.
* Replace vector2 module with a more generic vector module.David Thompson2014-06-071-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Make sprites immutable.David Thompson2014-05-071-2/+1
| | | | | | | | | | | | | * 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-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | * 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.
* Change license to GPLv3+.David Thompson2014-03-081-1/+17
|
* 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.
* Remove dynamic scoping of agendas.David Thompson2014-02-061-1/+1
| | | | | | | | | | | | | | | | * 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.
* Update particle example.David Thompson2014-01-121-38/+25
| | | | * examples/particles.scm: Update example.
* Update examples.David Thompson2013-11-041-1/+0
|
* Update examples to use new scene/stage system.David Thompson2013-11-031-10/+17
|
* Update the rest of the examples to use the new declarative game stuff.David Thompson2013-09-061-32/+32
|
* Replace old vector module with new vector2 module.David Thompson2013-08-271-6/+6
|
* Update examples.David Thompson2013-08-151-1/+0
|
* Update examples.David Thompson2013-07-281-3/+3
|
* Update examples.David Thompson2013-07-221-7/+5
|
* Update examples to reflect changes in keyboard events.David Thompson2013-07-211-3/+1
|
* Use init-2d in all examples.David Thompson2013-07-171-0/+1
|
* Update particle demo to use new sprite batching functionality.David Thompson2013-07-061-5/+4
|
* Update demos to use new sprite-batch-draw procedure.David Thompson2013-07-061-3/+1
|
* Reorganize examples.David Thompson2013-07-061-3/+2
|
* Update particles example to use sprite batching.David Thompson2013-06-271-26/+18
|
* Fix particles example.David Thompson2013-06-251-5/+5
|
* Update examples to use new keycode enumeration.David Thompson2013-06-251-6/+7
|
* Add some rough example programs.David Thompson2013-06-241-0/+93