Sprite Sheet Generator Utility

Today I want to share the sprite generator utility we extensively in our game development projects. It is pretty simple, doesn't have much options, only generates cocos2d compatible spritesheets and only works on Mac OS X. But still we find it extremely useful. Source code is available on github and can be easily tweaked to anyone's needs.

Usage is simple:

spritesheetgen INPUT_DIR OUTPUT_DIR TEXTURE_NAME

Utility will traverse all image files (PNG and JPEG) in INPUT_DIR folder, place them on texture (power of 2 size, non-square) and write texture image to OUTPUT_DIR/TEXTURE_NAME.png as well as OUTPUT_DIR/TEXTURE_NAME.plist with sprite locations description.

Utility will remove any transparent borders on input sprites, keeping sizes by correctly setting data in resulting plist file.

Vitaliy Ivanov Technical Director at Factorial Complexity