Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.
/ csb2csd Public archive

小工具,转换CocosStudio输出的csb文件为源文件,使之可继续编辑

License

Notifications You must be signed in to change notification settings

davidxifeng/csb2csd

Repository files navigation

csb2csd

把CocosStudio输出的csb文件转换成可以继续编辑的csd源文件

使用说明

lua lily.lua test/TestAnimation.csb
./lily.lua 1.csb 2.csb ...

注意:工具用到了Lua的flatbuffers库,链接为:

https://github.com/DavidFeng/lua-flatbuffers

需要编译出buffer.so之后,工具才可以正常运行

命令格式参考: 调用TexturePack把pvr.ccz转换成png格式

local cmd = 'TexturePacker %s --sheet %s --data /tmp/wd/dummy.plist --algorithm Basic --allow-free-size --no-trim'
for _, v in ipairs(arg) do
  local png_file_name = v:gsub("%.pvr.ccz", ".png")
  local s = cmd:format(v, png_file_name)
  --print(s)
  os.execute(s)
end

About

小工具,转换CocosStudio输出的csb文件为源文件,使之可继续编辑

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published