Been struggle lately with finding tutorials and documentation (clear one) of using creator’s cpp plugin, i have a lot of questions still need answering so i can start carving the path to the real work.
I will appreciate if someone link me creator/cocos2d-x project or demo or even a working example of using .ccreator files in coco2d-x project, i would prefer if it is something simple and easy to understand.
I went for this simply because it’s easier than asking questions.
Have you reviewed the Creator Quick Start and the Programmers Guide?
The creator quick start is with JS, the only piece of code that look helpful in those docs is
// mygame.cpp
#include "reader/CreatorReader.h"
void some_function()
{
creator::CreatorReader* reader = creator::CreatorReader::createWithFilename("creator/CreatorSprites.ccreator");
// will create the needed spritesheets + design resolution
reader->setup();
// get the scene graph
Scene* scene = reader->getSceneGraph();
// ...and use it
Director::getInstance()->replaceScene(scene);
}
and i have no idea where i should use or put that, and didn’t find any clear/real utilization for it in any project.