Cocos2d-x3.0-combined with TH Script Engine

Source: Internet
Author: User

I have recently studied mobile game development. The engine chose a cocos2d-x, a little look at the feeling seems very good.

You can write a general game. The workload is not very large, and development is relatively easy.


In the selection of the script engine, of course, it is necessary to use its own script engine, haha. So I sent a little time for integration.

The cocos2dx engine is ready for use. For C ++ programmers like me, nothing is better than this.

At present, most of the cocos2d-x engine class I have registered to the script, there are some later use in registration.


Currently, you can run a game on android. You need to publish the game to that platform after ios.


Engine class registration, I put it in libTHScript.


Th. cpp is a script. Haha, change the extension to cpp and write it directly in vs. The Shenma code prompts, auto indent, direct use, refreshing... Because the script syntax is similar to that of C ++ --


Compile and run the script in the engine app. That's easy. The following are gradually improved... If it's okay, share it with you.

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.