Create a project in the Egret engine development guide and an egret engine guide project
Egret provides a very convenient creation tool. We call the total number of created files as a project. Follow these steps to create a project:
Note that Egret supports Windows and Mac OS X. The Egret command is the same on different platforms. For different commands, refer to the related platform operations in the documentation.
When creating Egret, you must specify the directory of the project to be created. Egret stores all created project files in the specified directory.
1. Enter the project directory in Windows
In Windows, run the following command in the command line tool:
2. Enter the project directory in Mac OS X.
Create a folder named egretdemo in Mac OS X. Folder path:/Volumes/mac1/egretdemo/
Use the cd command on the terminal to locate the current directory, cd/Volumes/mac1/egretdemo/
3. Create a Hello World project
Next we will use the tools provided by egret to create our project. We will call the current project name "HelloWorld ". Run the command egret create HelloWorld on the terminal.
After a few seconds, the egret tool will create a project named "HelloWorld" under the directory we have created. In the Created directory, the project created by egret will be the same as the project name. You will see a folder named "HelloWorld" in the specified/Volumes/mac1/egretdemo/directory. Therefore, all files of the current project exist in this folder.
In the generated project folder, we will see four subfolders.
Workspace // egret workspace | -- HelloWorld // game project | -- src // game code directory, where the source code is stored and the file suffix is '. Ts '. | -- Resources // game Resource Directory, which stores game resources, including image files, audio files, and resource configuration files. | -- Launcher // game portal. All webpage files that can run to view game effects are stored in this folder. | -- Index.html // Startup File | -- libs // egret engine library file | -- bin-debug // compiled code directory, which stores the code in the current debug mode, most of the Code in this folder is '. js' file. | -- EgretProperties. json // Egret project compilation Parameters
For OGRE engine problems, an empty project is created using the OGRE wizard. Your Code cannot be compiled ??
Tell you what you are wrong is wrong. That is, the main function of window is wrong.
With mobile platform application development experience, hope to transform game development engineers to recommend a cocos2d-x engine development tutorial, it is best to bring the project
Cross-platform game development course cocos2d-x