spritesheet-generator
A spritesheet generator library using the piston's texture_packer
,
this lib provides the packed image and a json with all information following
the codeandweb's Texture Packer
basic format.
Usage
Add the crate named spritesheet-generator
to your dependencies in Cargo.toml
:
[dependencies]
spritesheet-generator = "0.5"
Code Sample
To export the spritesheet:
extern crate spritesheet_generator;
use generate;
use SpritesheetGeneratorConfig;
Example
To test the sample code, run the code below from the project directory.
# Be sure you're running this code at the root of the project directory!