Simple sprite implementation to draw into any canvas. This is just my playground with browser canvas animations, there are plenty other mature implementations available or frameworks for gaming development, consider searching for them if you are in a real game dev situation.
- Node v10 or higher;
- NPM v6 or higher.
- Multi sprite support;
- Only one instance is necessary for different animations of the same object;
- Highly configurable.
Code samples are available in samples/
folder.
Got all sprites for free on itch.io and adjusted them with Piskel. Sprites in use:
Run npm run dev
to watch and build all source files. For sample running execute npm run samples
together.