use creator to open creator_project and open the project
click Project -> LuaCPP Support -> Setup Target Project
fill in Project Path, it is a c++ or lua project created by cocos2d-x console
click Build
You you find all needed source codes are copied to NATIVE_PROJECT_ROOT/Classes/reader(it is NATIVE_PROJECT_ROOT/frameworks/runtime-src/Classes in lua), and all resources are copied to NATIVE_PROJECT_ROOT/Resources/creator(it is NATIVE_PROJECT_ROOT/res/creator in lua).
You can just use the readers and resources in your project to have a test. If using c++, then you need to add these codes
#include "reader/CreatorReader.h"
auto reader = creator::CreatorReader::createWithFilename("creator/CreatorSprites.ccreator");
reader->setup();
auto scene = reader->getSceneGraph();
director->runWithScene(scene);
If using lua, then you need to add these codes in c++ and lua.
local creatorReader = cc.CreatorReader:createWithFilename('creator/CreatorSprites.ccreator')
creatorReader:setup()
local scene = creatorReader:getSceneGraph()
cc.Director:getInstance():replaceScene(scene)
Please let me know if you meet any problem. Thanks.
Tried with this new repository. @ricardo
Can you tell me how we can fetch the individual elements from creator scene?
Also how to give callback funct to buttons, etc?
Thanks.
@ricardo Finally c++ thing inside creator 1.4. very soon I am about to implement. I am excited to work with it my first own game to develop with creator 1.4. Thanks a lot.
I’d be a little wary still. I’m reluctantly using it because some of my team members work better with GUIs than code, but it’s closed source and feels very much like beta quality software still, so if stuff breaks, you’re at the mercy of the Cocos developers and their release cycles, bureaucracy, etc. Scary enough for me not to try my luck betting a production game on it yet.
well, thanks for your info. If this is what happen, its better to try develop project in cocos studio with cocos2dx-3.10 because studio file is possible to import in creator now. still i have 1 month before to start coding for my project, so lets see if any update comes in between.
can you explain how to make it work with 3.14 because i don’t see any libraries of cocos studio in 3.14. that will be great help for me because between 3.10 to 3.14 lots of changes while my target platform is Android for the project.
cocos/editor-support/cocostudio - runtimes are here untouched. The different is with project template, in 3.14 you don’t have cocosstudio directory + ccs/cfg/udf files.
HI @ricardo i built successfully the c++ creator but when i try to create my own scene and complie it, i dont see any ‘myscene.ccreator’ in the resource folder.
Edit: i solved the issues. The reason i used drag and drop texture directly to the scene editor instead of using node library and put texture into it. When compile it, the console log just got some errors while parsing data. Dont know why.