1 Star 0 Fork 43

lineCodeJm / LayaAir

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

LayaAir is an open-source 2D/3D engine

LayaAir use WebGL1.0/WebGL2.0 as graphic API and written by TypeScript. LayaAir is designed for high performance games and support TypeScript and JavaScript programming language. Develop once and publish for multi-target platform (HTML5, Android, iOS, Wechat Mini-Game,QQ Mini-Game,BaiDu Mini-Game,XiaoMi Mini-Game,OPPO Mini-Game,VIVO Mini-Game,Bilibili Mini-Game,Alibaba Mini-Game, Facebook Instant Game).

LayaAir features

  • High performance

LayaAir use GPU graphic API(WebGL1.0/WebGL2.0). LayaAir is design to performance first.

  • Light weight and easy to use

Except performance,LayaAir architecture aim to be simple and easy to use, openness and small size. It's a 2D/3D engine can run very well for HTML5 platform.

  • Multi language development support

You can build your game from TypeScript,JavaScript and ActionScript3.0(Will be discard in the future).

  • Multi target platform support

LayaAir can directly build HTML5 and many "Mini-Game platform",LayaAir can also extend native platform app with LayaNative, a complete development solution for LayaAir engine to target native Apps, such as iOS or Android. LayaNative uses LayaPlayer as the core runtime and uses reflection function to provide developers with a secondary development. You also can use this function to handle docking market on your native applications. And it also provides developers with testApp and build tools to package and publish your project.

  • Mature ecosystem for design development and tool flow

LayaAirIDE provides 2D development tools and visual editor. Clear workflow make, ergonomic, designed development efficiency.Support code development,UI and Scene Editor,Particle Editor,Animation Editor,Physical Editor,Presupposition,Build Platform Packaging,Code confusion, compression and so on.

Unity Plugin provides 3D resource and scene editor and export with Unity, Compatibility support for commonly used unity funtion such as : Animtor,MeshRender,MeshFilter,ParticleSystem,Light,TrailRender,Lightingmap,Physics. Can let Unity project easier migration to LayaAir or directly use Unity as the 3D Editor.

  • Open-source and free

Our official Layabox Github with complete engine source version, free of charge, including commercial usage.

general features overview

  • 2D

    Vector Renderer, Atlas Texture, HTML Text, Bitmap Fonts, Mask, Filter, Animation, Timeline, UI, ParticleSystem, SkeletonAnimation, Physics, etc..

  • 3D

    Camera, Mesh, ParticleSystem, Multiple Light, SkyRender ,Animation , PhysicBaseRendering, Shadow, Custom Shader, Trail effect, PixelLine, Physics, Fog, StaticBatch, DynamicBatch, PostProcess etc...

Beginner usage

TS version

    /// <reference path="../../libs/LayaAir.d.ts" />
    class Sprite_DisplayImage{

        constructor(){
            Laya.init(550, 400);
            Laya.stage.scaleMode = "showall";

            var ape = new Laya.Sprite();
            //Loading our monkey
            ape.loadImage("res/apes/monkey2.png");

            Laya.stage.addChild(ape);
        }
    }
    new Sprite_DisplayImage();

JS version

    Laya.init(550, 400);
    Laya.stage.scaleMode = "showall";

    var ape = new Laya.Sprite();
    //Loading our monkey
    ape.loadImage("res/apes/monkey2.png");

    Laya.stage.addChild(ape);

API Document

Tutorial Document

Samples Demo

Business Case

Offical Community

Build

LayaAir Engine is automatically built using Gulp.

The following command execution directories are the root directory of the LayaAir engine project.

Environment Preparation

Install Gulp globally
npm install -g gulp
Install dependencies
npm install

Build the project

windows:

  • Publishing Engine
npm run build
  • Publishing API documentation
npm run buildDoc
  • Compile sample
npm run compile

Business Contact

空文件

简介

LayaAir 2.x 引擎,支持2D、3D的游戏与应用开发。支持一次开发多平台发布(HTML5、小游戏、Native【iOS\安卓 】APP)。LayaAir引擎是中国最成熟的小游戏引擎,在小游戏(微信小游戏、QQ小游戏、百度小游戏、支付宝小游戏、BiliBili小游戏、字节跳动小游戏、小米快游戏、OPPO小游戏、vivo小游戏、华为快游戏、等)领域应用广泛(超过90%市场占有率) 展开 收起
TypeScript
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
TypeScript
1
https://gitee.com/lineCodeJm/LayaAir.git
git@gitee.com:lineCodeJm/LayaAir.git
lineCodeJm
LayaAir
LayaAir
master

搜索帮助

14c37bed 8189591 565d56ea 8189591