UNPKG

spritesmith

Version:

Utility that takes images and creates a spritesheet with JSON sprite data

21 lines (20 loc) 314 B
{ "sprite1.png": { "x": 0, "y": 0, "width": 50, "height": 50 }, "sprite3.png": { "x": 0, "y": 50, "width": 100, "height": 200 }, "sprite2.jpg": { "x": 0, "y": 250, "width": 50, "height": 50 } }