Introduction - If you have any usage issues, please Google them yourself
Based on cocos2d-x developed Tetris game, I was in learning cocos2d-x engine, using vs2010' s C++ do in win7 under. Attach the complete source code. Please change according to your installation path cocos2d-x vs project property settings, you can debug run. The code is for cocos2d-x game development enthusiasts study.