1.0.1 • Published 6 years ago

scrixel-spritesheet v1.0.1

Weekly downloads
5
License
GPL-3.0
Repository
github
Last release
6 years ago

scrixel-spritesheet

Sprite sheet preprocessor for the Scrixel game engine.

Installation

npm install --save scrixel-spritesheet

Examples

const scrixelSpriteSheet = require("scrixel-spritesheet");

scrixelSpriteSheet(16, 16, "./res/minecraft.png").then(sprites => {
    const base64Sprites = sprites.map(sprite => sprite.toString("base64"));

    base64Sprites.forEach(sprite => console.log(sprite));
});

Tests

In the scrixel-spritesheet root directory, run:

npm install
npm test

Author

Jordan Lord

License

GPLv3. See LICENSE.txt.

1.0.1

6 years ago

1.0.0

6 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago