Preface:
Recently in the study of Cocos2d-x, although previously using vs2012 + C ++ to write a few very small and boring games, but Cocos code ide + Lua was just recently started to learn. I was the first to come into contact with the Lua language, because I was too lazy to learn its syntax structure, so I could learn and use other people's source code directly. Cocos code IDE is developed based on Eclipse. Since we have been developing Android before, eclipse is easy to use. I personally think eclipse is better than... But since Cocos code IDE was just released a few months ago, there are still many imperfections, and I believe there will be improvements in the future.
Recently, I have been addicted to the pixel dungeon game, which has been abused for hundreds of times. So I decided to use this game as a programming exercise.
Preparation:
- First of all, a Cocos code IDE is required. For detailed development environment configuration, click here.
- Download and install tiled to draw a map ..
- Obtain game images and music resources. First download the APK file of the game "pixel underground city" and decompress it to open the file. There is an assets folder in which the game pictures and music are all in it.
Not complete...