Last active
December 20, 2015 03:59
-
-
Save zilongshanren/6067597 to your computer and use it in GitHub Desktop.
TexturePack command line scripts for cocos2d-x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# PackTexture.sh | |
# | |
# Created by Guanghui Qu on 13-3-19. | |
TP="/usr/local/bin/TexturePacker" | |
# create spritesheet | |
${TP} --smart-update \ | |
--format cocos2d \ | |
--premultiply-alpha \ | |
--padding 2 \ | |
--data Resources/hd/spritesheet.plist \ | |
--sheet Resources/hd/spritesheet.pvr.ccz \ | |
--dither-fs-alpha \ | |
--opt RGBA4444 \ | |
--main-extension /hd/ \ | |
--autosd-variant 0.5:/sd/ \ | |
Arts/item/*.png | |
# create rope spritesheet | |
${TP} --smart-update \ | |
--format cocos2d \ | |
--premultiply-alpha \ | |
--padding 2 \ | |
--data Resources/hd/rope.plist \ | |
--sheet Resources/hd/rope.pvr.ccz \ | |
--dither-fs-alpha \ | |
--opt RGBA4444 \ | |
--main-extension /hd/ \ | |
--autosd-variant 0.5:/sd/ \ | |
Arts/rope/*.png | |
# create actor spritesheet | |
${TP} --smart-update \ | |
--format cocos2d \ | |
--premultiply-alpha \ | |
--padding 2 \ | |
--data Resources/hd/actor.plist \ | |
--sheet Resources/hd/actor.pvr.ccz \ | |
--dither-fs-alpha \ | |
--opt RGBA4444 \ | |
--main-extension /hd/ \ | |
--autosd-variant 0.5:/sd/ \ | |
Arts/actor/*.png | |
#create gui spritesheet | |
${TP} --smart-update \ | |
--format cocos2d \ | |
--premultiply-alpha \ | |
--padding 2 \ | |
--data Resources/hd/gui.plist \ | |
--sheet Resources/hd/gui.pvr.ccz \ | |
--dither-fs-alpha \ | |
--opt RGBA4444 \ | |
--main-extension /hd/ \ | |
--autosd-variant 0.5:/sd/ \ | |
Arts/gui/*.png | |
#create bg spritesheet | |
${TP} --smart-update \ | |
--format cocos2d \ | |
--premultiply-alpha \ | |
--padding 2 \ | |
--data Resources/hd/bg.plist \ | |
--sheet Resources/hd/bg.pvr.ccz \ | |
--dither-fs-alpha \ | |
--opt RGBA4444 \ | |
--main-extension /hd/ \ | |
--autosd-variant 0.5:/sd/ \ | |
Arts/bg/*.png | |
# .... | |
# add other sheets to create here | |
# .... | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment