Based on COCOS2DX Development card Game _ release, these three countries

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.