https://github.com/NoFluxGiven/Actions
This library gives you a way to create modular, self-contained behaviours for your instances, in a nice, simple fluent interface.
See the example project or the readme for more information on how to use it.
Features
- Self-contained, time-aware action loops for instances - create modular behaviours or animations easily.
- Useful helper methods like
at(),between(),before(),after(),steps()andevery()to handle many use cases. - Simple and fluent interface.
- Out-of-the-box "fire and forget" handling - Actions run once, and won't run again while playing.
- Straightforward scope handling - the instance that creates the Action is
self, or you can rebind it with thebind()method.
Upcoming
- Arguments for
play()/execute(). - Hooks for advanced behaviour;
onStopped(),onPlayed,onPaused, etc.