开源软件名称(OpenSource Name):egret-labs/egret-core开源软件地址(OpenSource Url):https://github.com/egret-labs/egret-core开源编程语言(OpenSource Language):JavaScript 84.2%开源软件介绍(OpenSource Introduction):Egret EngineThe Egret Engine is a HTML5 game engine. It provides modules to handle common game development tasks such as 2D and 3D rendering, GUI systems, and audio and resource management. The Egret engine is flexible and suitable for 2D or 3D projects. It allows developers to work without worrying about low-level browser impelementation, HTML5 performance, or fragmentation issues. Platform CoverageMobilePCInstallationTo Install the Egret Engine:
Once installation is complete, Egret's engine and tools are easy to manage. Getting StartedTypeScriptEgret projects are developed using TypeScript, which is a superset of JavaScript. Please refer to the TypeScript manual for more information. The Egret API and ActionScript3 (AS3) are very similar. It will be easy to get started with Egret if you are familiar with AS3. Create a project by command lineUse following command to create a default game object:
You may also add parameters if required: Use After running this command, you should now see a folder called 'HelloWorld'. Write your first line of codeBy default, the entry point for an Egret game projects is src / Main.ts. To make write the first line of code for your project, find the createGameScene () function, and add console.log ("Hello World"); After making your changes, the code should now look like this:
Here, we've called
Use the following command to build Egret projects:
Use the following command to run Egret projects:
For more information, please refer to the Learning Module documentation. DemosTower Defence Demo
Click here for online experience. Click here for more 2D/3D demos. Show CaseClick here to see Show Case Learn
Tools
Third Party Library
ContributingAsking a question is the first step to participating in an open-source community. You can report Egret issues here. It is recommended that issues be discussed in the official community portal, as it can help with solving problems efficiently. LicenseThis content is released under the (https://opensource.org/licenses/BSD-2-Clause) BSD License. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论