rn-sprite-sheet icon indicating copy to clipboard operation
rn-sprite-sheet copied to clipboard

Document spritesheet specification requirements

Open elisechant opened this issue 5 years ago • 2 comments

It would be great if you could document information about spritesheet characteristics and specifications that this library requires.

I am looking at the mummy.png file and comparing it to my own spritesheet to find clues. But I am struggling to understand scaling and positioning of the spritesheet itself.

There are a number of configurations options for spritesheet generation that we have available to us, for example in Adobe Animate:

Screen Shot 2020-04-08 at 7 01 13 am

Currently I think it would be more intuitive if the input API was refactored to consume a spritesheet .png in addition to a coordinate mapping file which is usually .json instead of the rows, columns, width props.

In the interim, some basic documentation would be welcomed.

elisechant avatar Apr 07 '20 21:04 elisechant

I made this library with Piskel in mind. I don't maintain the library anymore, but I accept PRs.

mileung avatar Apr 08 '20 09:04 mileung

@MiLeung ok. I found that Adobe Animate created sprite sheet images that were not cropped exactly to rows and columns. I created a PR to spell that requirement out to others that might come across the same issue in the future.

elisechant avatar Apr 24 '20 00:04 elisechant