spritez
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Spritez

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.

Requirements

  • Node v10 or higher;
  • NPM v6 or higher.

Features

  • Multi sprite support;
  • Only one instance is necessary for different animations of the same object;
  • Highly configurable.

Samples

Code samples are available in samples/ folder.

Sprites

Got all sprites for free on itch.io and adjusted them with Piskel. Sprites in use:

Running

Run npm run dev to watch and build all source files. For sample running execute npm run samples together.

Readme

Keywords

Package Sidebar

Install

npm i spritez

Weekly Downloads

3

Version

0.2.1

License

MIT

Unpacked Size

14.5 kB

Total Files

21

Last publish

Collaborators

  • renansiravegna