When using Cocos Studio 2 to create a project, it creates a scane called “MainScene”. The default HelloWorld code that it then generates when the project is launched in Visual Studio or XCode then creates a HelloWorld class, that derives from Layer, which is added to an actual Scene object that is given to the director. HelloWorld::init loads the “scene” from MainScene.csb as its own child.
So now, instead of “MainScene” being used as the scene in the default project, it is the child of a child of the Scene. What purpose does this level of indirection serve? Is it bad practice to create a SceneController class that derives directly from cocos2d::Scene?