SpriteBuilder runtime for cocos2dx-lua(v3quick)
- There's no SpriteBuilde runtime for cocos2dx-lua(v3quick).
- Lua is fast enough to handle UI and simple animations.
- Quick-UI(the Lua implemention of UI frameworks in v3quick) is as good as the C++ implemention in cocos2dx(c++).
- Expande the Quick-UI or add SpriteBuilder plugin if needed.
- Convert *.ccb file to json, for json is easier to read than xml in Lua. In this project, I'll just use a cmdline tool called plutil.
- Not All feature will be implemented in the first version.
local loader = require("app.spritebuilder-lua.CCBLoader")
local node, children = loader.loadCCB("ccb/battle_ui.json") -- create the node, and the children reference
self:addChild(node) -- add to anywhere you want.
self.children = children -- control your vars to match your needs.
- The example is based on v3quick-3.3 version.