marekventur Posted October 4, 2015 Share Posted October 4, 2015 Hi, In order to reduce loading times for sprites we used to use Spritesmith with a Pixi plugin and gulp. The downside to this was its relatively slowness and that it didn't come with certain features like compression and trimming. TexturePacker (being the commercial alternative) was also not quite the right fit for us, so I decided to write our own solution. I hope it might be useful for others as well: https://github.com/gamevy/pixi-packer Main features are:- Focus on command line usage and CI- Configuration via JSON- Made for checking in the source images rather than the finished spritesheets- Support for multiple scales (think retina and normal), variations (themes or languages) and loading stages- Minimises amount of HTTP connections and download size in the finished game- Comes with special loader plugin for Pixi.js v3: https://github.com/gamevy/pixi-packer-parser- Fine-grained compression settings (JPEG quality, pngquant, optipng)- Caching support to speed up conversion - MIT License All configuration is done via a central config file. Have a look at https://github.com/Gamevy/pixi-packer/blob/master/example.js to get an idea of the features available. Comments, bug reports and contributions are welcome. There's also a lot of room for improvement (more efficient packing algorithms, better error messages, improved documentation, ...) so please get in touch if you want to help! Marek AhmedElyamani 1 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.