Ccdirector Director
Singleton class, get the Director object through the ccdirector: shareddirefunction
Ccdirector * D = new ccdirector () // error. The singleton object should not be created by yourself.
1) The director is responsible for initializing the environment
2) The director is responsible for driving the game process runwithscene, replacescene, pushscene, and popscene.
3) the Director is responsible for Coordinate Transformation
Ccscene scenario: A scene is collected from the cocos2dx data structure. It is the root node of a rendering tree at any time. Only one scene is a container in the running scenario.
Cclayer: logically divides the containers of game elements, and requires certain mobile functions, some elements must be combined in one layer. The response of the human-computer interaction interface is completed by the cclayer (implemented by virtual functions). Generally, the cclayer class is derived from the cclayer to add code, rendering game elements
Ccsprite genie are mainly used to reflect the object of game elements
------ In Game Design ----- A Game generally consists of multiple scenarios
Welcome scenario --- menu scenario --- game scenario --- failed scene animation scenario
| -------- Level2 scenario ------------------ point list
[Cocos2d-x Study Notes] Director, scene, layer, Genie Model