https://github.com/featurist/fireworks
https://github.com/featurist/fireworks
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/featurist/fireworks
- Owner: featurist
- Created: 2013-06-11T21:15:20.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-12T08:20:16.000Z (almost 12 years ago)
- Last Synced: 2025-01-20T11:21:49.939Z (3 months ago)
- Language: PogoScript
- Size: 102 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fireworks
This is a demo showing how to write animations using coroutines in pogoscript.
A coroutine is a function that yields periodically, giving up control to the caller of the function. So if the function animates a sprite, yielding allows other sprites to animate themselves, and for those sprites to be drawn on the canvas.
## Do not read the code!
Your brain will melt.
## (Read the code)
Because it might help you understand how continuations work.
In particular you probably want to read the `animate firework` object, the one containing all the calls to `yield!`.