All Projects → egret-labs → Egret Core

egret-labs / Egret Core

Licence: other
Egret is a brand new open mobile game and application engine which allows you to quickly build mobile games and apps on Android,iOS and Windows.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Egret Core

Foster Ts
A WebGL + TypeScript 2D Game framework with a Scene>Entity>Component model.
Stars: ✭ 112 (-96.92%)
Mutual labels:  game-engine, webgl, html5-canvas
Kaetram Open
An open-source 2D HTML5 adventure based off BrowserQuest (BQ).
Stars: ✭ 138 (-96.2%)
Mutual labels:  game-engine, html5-game, html5-canvas
Babylon.js
Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
Stars: ✭ 15,479 (+326.3%)
Mutual labels:  game-engine, webgl
Atomicgameengine
The Atomic Game Engine is a multi-platform 2D and 3D engine with a consistent API in C++, C#, JavaScript, and TypeScript
Stars: ✭ 2,541 (-30.02%)
Mutual labels:  game-engine, webgl
egretRingsGame
egretGame
Stars: ✭ 25 (-99.31%)
Mutual labels:  html5-game, egret
Magnum Examples
Examples for the Magnum C++11/C++14 graphics engine
Stars: ✭ 180 (-95.04%)
Mutual labels:  game-engine, webgl
Flextgl
OpenGL and Vulkan header and loader generator.
Stars: ✭ 180 (-95.04%)
Mutual labels:  game-engine, webgl
Facebook-instan-games-SDK
Learn how to integrate games built with JavaScript and HTML5 with Facebook instant games SDK
Stars: ✭ 59 (-98.38%)
Mutual labels:  html5-game, html5-canvas
Lba2remake
A Little Big Adventure 2 / Twinsen's Odyssey reimplementation in JavaScript / Three.js / React
Stars: ✭ 116 (-96.81%)
Mutual labels:  game-engine, webgl
Glas
WebGL in WebAssembly with AssemblyScript
Stars: ✭ 278 (-92.34%)
Mutual labels:  game-engine, webgl
Dot-World-Maker
Online web role playing game (RPG) engine let you build your own game directly from your browser.
Stars: ✭ 25 (-99.31%)
Mutual labels:  html5-game, html5-canvas
Html5 Asteroids
Pure Javascript Asteroids
Stars: ✭ 287 (-92.1%)
Mutual labels:  html5-game, html5-canvas
Expo Voxel
🎮🌳 Voxel Terrain made in React Native. ∛
Stars: ✭ 169 (-95.35%)
Mutual labels:  game-engine, webgl
Ego
A lightweight decision making library for game AI.
Stars: ✭ 145 (-96.01%)
Mutual labels:  game-engine, webgl
Ashes
WebGL2.0 3D Engine & ECS & RayTracing
Stars: ✭ 191 (-94.74%)
Mutual labels:  game-engine, webgl
Simplerenderengine
Small C++14 render engine
Stars: ✭ 253 (-93.03%)
Mutual labels:  game-engine, webgl
Nunustudio
Web powered cross-platform 3D, WebXR game engine.
Stars: ✭ 1,302 (-64.14%)
Mutual labels:  game-engine, webgl
Melonjs
a fresh & lightweight javascript game engine
Stars: ✭ 3,721 (+2.48%)
Mutual labels:  game-engine, webgl
crazy racing
An html5 car-racing game
Stars: ✭ 16 (-99.56%)
Mutual labels:  html5-game, html5-canvas
Rabbittoolbox
🤸🏾‍♀️👗开源的动画渲染软件,提倡以简单、易用,高质量的物理演算以及渲染质量和性能,为喜爱二次元动画的用户降低视频制作门槛
Stars: ✭ 309 (-91.49%)
Mutual labels:  game-engine, webgl

forks stars version license

EN / CN

Egret Engine

The 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 Coverage

Mobile

PC

Installation

To Install the Egret Engine:

Once installation is complete, Egret's engine and tools are easy to manage.

Getting Started

TypeScript

Egret 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 line

Use following command to create a default game object:

egret create HelloWorld

You may also add parameters if required: Use empty | game | gui | eui to specify different projects.

After running this command, you should now see a folder called 'HelloWorld'.

Write your first line of code

By 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:

private createGameScene():void {
        // log
        console.log("Hello World");
        var sky:egret.Bitmap = this.createBitmapByName("bgImage");
        this.addChild(sky);
        var stageW:number = this.stage.stageWidth;
        var stageH:number = this.stage.stageHeight;
        sky.width = stageW;
        sky.height = stageH;
        //...
    }

Here, we've called console.log("log content that we'd like to display"). This will display our log message in the browser's developer tool.

We recommend using Chrome to debug the Egret project.

Use the following command to build Egret projects:

egret build

Use the following command to run Egret projects:

egret startserver

For more information, please refer to the Learning Module documentation.

Demos

Tower Defence Demo Click here for online experience.

Click here for more 2D/3D demos.

Show Case

Click here to see Show Case

Learn

  • Access Doc to get Engine document
  • Access Example to learn demo source code
  • Access API to get API document
  • Access Video to get videos
  • Access Community to communicate with other developers

Tools

Third Party Library

  • Use base64texture to convert base64 String to egert Texture
  • Use dcagent DataEye SDK for Egret
  • Use ecs component system
  • Use euiextension EUI extension
  • Use gesture Gesture library
  • Use keyboard Keyboard event listener
  • Use Greensock Greensock animation library
  • Use jszip jszip Compression library
  • Use md5 A simple MD5 Library
  • Use mouse PC mouse support library
  • Use particle particle system
  • Use physics p2Physics engine,current version 0.7.0
  • Use socket socket.io
  • Use tiled tiledmap support library
  • Use weixinapi WeChat API
  • More third party libraries please visit here

Contributing

Asking 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.

License

This content is released under the (https://opensource.org/licenses/BSD-2-Clause) BSD License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].