Added visual effects animations to BeepMini. This makes it easy to add things like explosion animations, sword swipes etc. The animations are all tile-based.
The animations have a selection of frames that are specified in an array, the same as used for Actors. The animation has a defined speed (in frames per second) and can be set to loop or not.
You should draw the animation in your game loop by calling b8.Vfx.draw( animationId, startTime ) where startTime is the timestamp when the animation started (you can get this from b8.Core.now()).
When the animation finished b8.Vfx.draw will return false, so you can use that to know when to stop drawing it.
You can see a demo of the Vfx system in the BeepMini examples: Vfx Demo.