| Crates.io | spriteron |
| lib.rs | spriteron |
| version | 0.1.0 |
| created_at | 2019-04-20 20:09:09.274752+00 |
| updated_at | 2019-04-20 20:09:09.274752+00 |
| description | Generate sprite ron files for Amethyst |
| homepage | https://github.com/zlepper/spriteron |
| repository | https://github.com/zlepper/spriteron |
| max_upload_size | |
| id | 129135 |
| size | 7,188 |
Sprite simple command line application for generating ron files for Amethyst, because hand writing them is a pain.
Install using Cargo:
cargo install spriteron
Assuming you have a spritesheet called spritesheet.png:
$ spriteron spritesheet.png generate -h 4 -v 4 -d horizontal
-h separates the file in 4 horizontal columns, and -v in 4 vertical rows.
-d sets the direction if the output to either vertical or horizontal. Useful if
your spritesheets contains animations.
By default the generated ron output will be printed to stdout, but it can easily be redirected using your standard stdout direction commands:
$ spriteron spritesheet.png generate -h 4 -v 4 -d horizontal > spritesheet.ron