[Cocos2d-js official documentation] 20, moduleConfig. json, cocos2djson

Source: Internet
Author: User

[Cocos2d-js official documentation] 20, moduleConfig. json, cocos2djson
Overview

This configuration file is equivalentJsloader. js. The purpose of the transformation is to make the configuration pure and support it well.Cocos-console,Cocos-utilsIt is even a user-defined script tool.

Field description module

Configure the js list of each module. The key name is the module name. These keys will be stored inProject. jsonOfModulesField. If you do not knowProject. jsonWhich modules can be configured in the file, you can directly view the file.

The configuration object of each module is an array. There are two types of array items: Module name and js path.

For example:

"Menus": ["core", "actions", "cocos2d/menus/CCMenuItem. js", "cocos2d/menus/CCMenu. js"]

This configuration means that,MenusThe module depends onCoreAndActionsModule, includingCocos2d/menus/CCMenuItem. jsAndCocos2d/menus/CCMenu. js.

Reprinted from: http://www.cocos2dx.net/post/245

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.