大约有 520 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
...发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this._tempUnitX1 = new Laya.Vector3(0, 0, -0.1); this._tempUnitX2 = new Laya.Vector3(0, 0, 0.1); this._tempUnitX3 = new Laya.Vector3(-0.1, 0, 0); this._tempUnitX4 = new Laya.Vector3(0.1, 0, 0); this.debug = true; Laya.stage.sc...
来源: Laya_示例 发布时间: 20251130
... Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; tes...
来源: Laya_社区 发布时间: 20180424
...让项目开发更高效。class Physics_Physics_Tumbler { constructor() { this.count = 0; this.totalBox = 200; Laya.Config.isAntialias = true; Laya.Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable({ gravity: 0 }); Laya.PhysicsDebugDra...
来源: Laya2.0_示例 发布时间: 20251130
...为并不是所有的页面,都需要在ui中使用var变量。变量的this使用方式,主要是给UI继承类来使用的,如果我们不使用UI继承类。那么对于UI挂脚本的需求,根本用不上var的this.xxx。那么此时,文件模式足够使用,还可以减少包体的...
来源: Laya_社区 发布时间: 20210403
...e(); Laya.stage.loadImage("res/cartoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, this.gameLoop); } createCharacters() { let char; let charSki...
来源: Laya2.0_示例 发布时间: 20251130
...r.load("https://piggy.q1.com/res//atlas/images.atlas", Laya.Handler.create(this, this.onLoaded2), null, Laya.Loader.ATLAS); // Laya.loader.load("map/tile_map.png"); 2018-05-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...
来源: Laya_社区 发布时间: 20180528
...Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); animation.i...
来源: Laya_示例 发布时间: 20251130
...• 2018-05-31 17:36 @Laya_Aaron: Laya.loader.load(assetArr,Handler.create(this,this.gameStart),Handler.create(this,onProgress,null,false)); private var assetArr:Array=[ {url:"sound/bgMusic.mp3", type:Loader.SOUND}, {url:"sound/button.mp3", type:Loader.SOUND}, {url:"sound/er...
来源: Laya_社区 发布时间: 20180531
...; meshCollider.mesh = plane.meshFilter.sharedMesh; Laya.timer.frameLoop(1, this, checkHit); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空间生成射线 point...
来源: Laya_示例 发布时间: 20251130
...发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scen...
来源: Laya_示例 发布时间: 20251130