官术网_书友最值得收藏!

Getting acquainted with the project structure

The main backbone files required for any Cocos2d-html5 game are the index.html, main.js, and cocos2d.js files. These are exactly the files you will see in your project's root directory. In addition to these three files, you can also see a file called build.xml and another file called cocos2d-jsb.js. Take a look at the following table for a brief description of what these files are responsible for:

Now that we have a basic understanding of the structure of a typical Cocos2d-html5 project, it is time to create our very first scene in ColourSmash.

主站蜘蛛池模板: 襄垣县| 鄢陵县| 鹤山市| 和龙市| 兴文县| 沙洋县| 汤阴县| 雷波县| 瓮安县| 南华县| 谢通门县| 贵南县| 梅州市| 益阳市| 海阳市| 赤峰市| 皋兰县| 大渡口区| 潜江市| 常山县| 华亭县| 禄丰县| 阿鲁科尔沁旗| 西平县| 开原市| 共和县| 太仓市| 班玛县| 太仆寺旗| 思茅市| 临西县| 镇赉县| 宜丰县| 海南省| 望都县| 安达市| 尼木县| 柯坪县| 阿拉善左旗| 阜南县| 长乐市|