During my effort to create an enjoyable development experience with the Nim bindings, I took inspiration from @Nic post and put some time developing this command line utility.
In contrast to Nic Lua utility functions, this is a high performance standalone tool and can be used to auto-generate rotations spritesheets at build-time or whenever you want, no simulator or Playdate dependencies!
It can:
- Generate rotations using rotsprite, shearing, nearest and linear algorithms.
- Be configurable using options, use
spriterot --help
to learn more or read the README on GitHub. - Be integrated well with Playdate's tables: by default, it exports a filename ending with
-table-w-h.png
.
A few examples from the repository (but you can also refer to Nic post):
rotsprite
: best results for standard pixel art.
shearing
: best results for keeping shades of dither patterns, e.g. Playdate graphics with dithering.
nearest
: standard algorithm, nothing special.
linear
: best results for conventional graphics, not pixel art.
Hope this can be useful for the community!