"Source Analysis" the trigger logic of the Cocostudio scene editor

Source: Internet
Author: User

To see the scene editor, you can see the settings of the Simulator (menu bar settings). The default is to select the Cocostudio installation path in the Simulator.exe this simulator, crossing network Introduction is the choice of the simulator, and the public source code can be designed and compiled on demand as you want the simulator, just give an example, such as can support the scheduler! Of course here you're going to implement the same cocostudio logic as triggers, hehe

Here first provide an official website source (cocos2.x version): Https://github.com/chukong/CocoStudioConnector

First of all, to say the whole logic, in fact, is their own understanding:

(1) What is a simulator? Plainly, is a game client, is a Win32 program. And we create a project with COCOS2DX, open Proj.win32 compiled EXE is essentially the same

(2) The difference is that the simulator supports two blocks of main content:

* Parsing and rendering the contents of the scene editor, mainly parsing JSON files

* Implement the trigger and convert the configuration in the scene editor to a COCOS2DX supported trigger

Now, the main record of the trigger logic, directly:

Finally, we find the Sendevent function in Triggermng, and the logic is a single eye.

Reference:

[1]http://www.cocoachina.com/bbs/read.php?tid=196660

"Source Analysis" the trigger logic of the Cocostudio scene editor

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.