spriteron

Crates.iospriteron
lib.rsspriteron
version0.1.0
created_at2019-04-20 20:09:09.274752+00
updated_at2019-04-20 20:09:09.274752+00
descriptionGenerate sprite ron files for Amethyst
homepagehttps://github.com/zlepper/spriteron
repositoryhttps://github.com/zlepper/spriteron
max_upload_size
id129135
size7,188
Rasmus Hansen (zlepper)

documentation

README

Spriteron

Sprite simple command line application for generating ron files for Amethyst, because hand writing them is a pain.

Installation

Install using Cargo:

cargo install spriteron

Example

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
Commit count: 0

cargo fmt