Currently, the tool generates a sprite sheet that animates an image's rotation since it's expensive to do at runtime. It could be useful to also integrate scale and opacity animation, since those are expensive as well. I have something similar here: https://github.com/manaliveadam/glitterbomb/blob/main/source/glitterglue.lua but it could work something like:
- Specify initial scale and end scale (with 1 being the image's native size). For every frame of the sprite sheet that's generated, lerp between the initial and end scale
- Specify initial opacity and end opacity, and use Playdate's built-in dithering to lerp between the initial and end opacity (I use kDitherTypeBayer8x8 but you could also allow users to specify the dithering technique)
The end result should be a sprite sheet that can animate an image's rotation, scale, and opacity.
Currently, the tool generates a sprite sheet that animates an image's rotation since it's expensive to do at runtime. It could be useful to also integrate scale and opacity animation, since those are expensive as well. I have something similar here: https://github.com/manaliveadam/glitterbomb/blob/main/source/glitterglue.lua but it could work something like:
The end result should be a sprite sheet that can animate an image's rotation, scale, and opacity.