These days in the use of Cocos2D-X to try to do a small game, of course not innovation, just imitation, is to be used in practice the technology learned during this time.
In this process, I encountered some problems and made some conclusions here to avoid similar problems in the future. Sharing with zajun, I hope to be able to play a little help in the development of zajun in the future. Even if it is just a little bit, I will not be able to bear the original intention of O (∩) O Haha ~
1. After Entering the scenario, the expected control moving effect is not displayed.
Error cause: the onEnter () method of the parent class is not called.
2. SimpleAudioEngine cannot be found
Error cause: the header file # include "SimpleAudioEngine. h" is not imported.
Using namespace CocosDenshion; namespace not referenced
3. Call CCDirector: sharedDirector ()-> replaceScene (GameAbout: scene (). After switching the scenario, the new scenario is displayed in black.
Cause of error: CREATE_FUNC (GameAbout) is not used; create a new scenario using macro
4. the following error is reported when the project compiled with VS2012 is used and run with VS2010:
Fatal error LNK1123: failed during COFF conversion: Invalid or corrupt file
The solution is as follows:
Project \ properties \ configuration properties \ Configuration tool \ Input and Output \ embedded list: changed from "yes" to "no ".
5. CCSpriteBatchNode only support CCSprite
Error cause: Add a non-CCSprite object to the CCSpriteBatchNode object
6. Expected title movement and background movement
Error cause: the title and background tags are repeated.