1. It realizes dynamic reading of map resources, and map information is recorded in Excel table.
Assuming you want to add a map, editor Excel imports the Cocostudio data editor and then exports it to a JSON file, placed under the project's Resource folder.
The second parameter of the Initmap function in 2.sgfight.cpp is the index of the map, which changes its value to the effect of loading different copies.Test Map 1
Test Map 2
2. The warlord information is also stored in the Excel table.
Suppose you want to add the same method as above.
3. The process of fighting has been achieved. Fight 1
Fight 2
4. Login Screen
4. Project (contains source and resource files)Click to open link
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
Based on COCOS2DX Development card Game _ release, these three countries