- Cocos2d-x Game Development Blueprints
- Karan Sequeira
- 177字
- 2021-07-16 13:47:54
Creating a project in Cocos2d-html5
Creating a project in Cocos2d-html5 is as simple as copying a readymade template and renaming it to what you want to call your game. If you've downloaded and extracted the archive of the Cocos2d-html5 source, navigate to the template
folder inside it. Your file explorer should show you something like this:

If you run the index.html
file you see in the template
folder, you'll realize that it is nothing but a hello world
project. This is exactly what we need to get us started. To create a new project in Cocos2d-html5, follow these steps:
- Copy all the files within the
template
folder. - Create a folder in the root directory of the Cocos2d-html5 engine. The engine's root with the folder for ColourSmash is shown in the following screenshot:
- Now, paste all the files that you copied from the
template
folder into the folder you just created.
That's it! You have created your first project in Cocos2d-html5. Now, it's time to get acquainted with the different kinds of files located in the project's directory.
推薦閱讀
- 微服務與事件驅動架構
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- 無代碼編程:用云表搭建企業數字化管理平臺
- Unity Virtual Reality Projects
- Java從入門到精通(第5版)
- Android Native Development Kit Cookbook
- Haskell Data Analysis Cookbook
- PLC應用技術(三菱FX2N系列)
- LabVIEW虛擬儀器入門與測控應用100例
- Backbone.js Testing
- Mastering Apache Camel
- Data Manipulation with R(Second Edition)
- Python程序設計教程
- Python 3.6從入門到精通(視頻教學版)
- Java與Android移動應用開發:技術、方法與實踐