这两天在看一个安卓游戏,资源挺不错的,解压后发现animation里的图片格式全是pvr.ccz,查了下,这是做2D游戏spirit图打包后的格式,用的软件是TexturePacker,知道了软件那就知道如何解回去了。
下载TexturePacker
安装TexturePacker
将如下代码存成批处理
@echo off
path %path%;"C:Program Files (x86)TexturePackerbin"
for /f "usebackq tokens=*" %%d in (`dir /s /b *.pvr *.pvr.ccz *.pvr.gz`)
do (TexturePacker.exe "%%d" --sheet "%%~dpnd.png" --data "%%~dpnd.plist"
--opt RGBA8888 --allow-free-size --algorithm Basic --no-trim --dither-fs)
pause
将上面的批处理放在你的文件夹目录下,运行即可(支持遍历子目录)
将图片打包成pvr.czz,同样是需要一个批处理
@echo off
path %path%;"C:Program Files (x86)CodeAndWebTexturePackerbin"
for /f "usebackq tokens=*" %%d in (`dir /s /b *.png`) do (
TexturePacker.exe "%%d" --sheet "%%~dpnd.pvr" --data "%%~dpnd.plist"
--opt PVRTC4 --allow-free-size --algorithm Basic --no-trim --dither-fs
)
pause
利用这个工具,我们来下载游戏资源图片就方便多啦,虽然此工具是商业收费的,不过也有免费版。
[前端打包工具]图片打包工具TexturePacker将*.pvr.ccz转为png格式
http://m.bbyears.com/shoujikaifa/68671.html
推荐访问:打包工具有哪些 软件打包工具