Cocos Studio 2.0 Publish Project

Hi everyone,

I’ve read the Cocos Studio 1.0 (or 1.6) tutorial where they explain that you can export pngs and json files but in version 2.0 the extension of the files that you get when you publish a Cocos 2D-JS 3.1 project on Cocos Code IDE are png, (on res/Default directory), csb (on res folder), ccs (on root project directory, it seems a xml file) and csd (on cocostudio folder, it seems an xml file).

I suppose that Cocos Studio can be a really helpful tool like Sprite Builder on Cocos 2D-Swift so I would like to take advantage of it. If somebody could help me to understand how to use this files or generate code from it to the cocos project I would really appreciate it.

So after publish your project
you’ll get the binary file .csb

And you can load those with

CSLoader::createNode(filename)

Note: this only works on cocos2d-x 3.3 and up

1 Like

Thank you very much nite, I’ll try to work with that. :wink: