mirror of
https://github.com/wu736139669/SmallGame_Cocos2dx.git
synced 2026-08-05 06:23:09 +00:00
new
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#! /bin/sh
|
||||
TP=/usr/local/bin/TexturePacker
|
||||
if [ "${ACTION}" = "clean" ]
|
||||
then
|
||||
# remove all files
|
||||
rm ../Resources/Assets/sheet*.png
|
||||
rm ../Resources/Assets/sheet*.plist
|
||||
else
|
||||
echo "TexturePacker building..."
|
||||
|
||||
#当前设置路径为Assets
|
||||
|
||||
#创建目录
|
||||
#mkdir -p ../Resources/res/test
|
||||
|
||||
#1.调用TP生成sprintsheet
|
||||
#2.到--data和--sheet时会自动创建目录
|
||||
#3.最后小图从Assets取得,路径对应Assets里面的
|
||||
${TP} --smart-update \
|
||||
--format cocos2d \
|
||||
--data ../Resources/res/funfilename/funfilename.plist \
|
||||
--sheet ../Resources/res/funfilename/funfilename.png \
|
||||
funfilename/*.png
|
||||
|
||||
${TP} --smart-update \
|
||||
--format cocos2d \
|
||||
--data ../Resources/res/funfilename/funfilename_funfilesubname.plist \
|
||||
--sheet ../Resources/res/funfilename/funfilename_funfilesubname.png \
|
||||
funfilename/funfilesubname/*.png
|
||||
|
||||
|
||||
... add more sheets ....
|
||||
fi
|
||||
exit 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
TP=/usr/local/bin/TexturePacker
|
||||
if [ "${ACTION}" = "clean" ]
|
||||
then
|
||||
# remove all files
|
||||
#rm ../Resources/Assets/*.png
|
||||
#rm ../Resources/Assets/*.plist
|
||||
else
|
||||
echo "TexturePacker building..."
|
||||
|
||||
#当前设置路径为Assets
|
||||
|
||||
#创建目录
|
||||
#mkdir -p ../Resources/res/test
|
||||
|
||||
#1.调用TP生成sprintsheet
|
||||
#2.到--data和--sheet时会自动创建目录
|
||||
#3.最后小图从Assets取得,路径对应Assets里面的
|
||||
|
||||
#CocoStudioResources
|
||||
echo "CocoStudioResources building..."
|
||||
${TP} --smart-update \
|
||||
--format cocos2d \
|
||||
--data ../Resources/CocoStudioResources/layoutLoading0/layoutLoading0.plist \
|
||||
--sheet ../Resources/CocoStudioResources/layoutLoading0/layoutLoading0.png \
|
||||
CocoStudioResources/layoutLoading0/*.png
|
||||
|
||||
|
||||
|
||||
|
||||
... add more sheets ....
|
||||
fi
|
||||
exit 0
|
||||
Reference in New Issue
Block a user