同步操作将从 北京蓝亚盒子科技有限公司/LayaAir 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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 use GPU graphic API(WebGL1.0/WebGL2.0). LayaAir is design to performance first.
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.
You can build your game from TypeScript,JavaScript and ActionScript3.0(Will be discard in the future).
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.
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.
Our official Layabox Github with complete engine source version, free of charge, including commercial usage.
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...
/// <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();
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);
LayaAir Engine is automatically built using Gulp.
The following command execution directories are the root directory of the LayaAir engine project.
npm install -g gulp
npm install
npm run build
npm run buildDoc
npm run compile
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。