大约有 341 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
Laya_社区(187) Laya2.0_文档(42) Laya3.0_api(25) Laya3.0_文档(22) laya_api(18) Laya_示例(17) Laya2.0_api(16) Laya2.0_示例(14)
...aya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图 function createMap() { //创建地图对象 tiledMap = new TiledMap(); mX = mY = 0; //创建地图,适当的时候调用destory销毁地图 tiledMap.createMap("../../res/tiledMap/des...
来源: Laya_示例 发布时间: 20251130
...NTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createSprite(); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } function createSprite() { sp = new Sprite(); var w = 200, h = 300; sp.graphics....
来源: Laya_示例 发布时间: 20251130
...SE_MOVE, this, mouseHandler); b.on(Event.MOUSE_UP, this, mouseHandler); trace("addEvent"); } } private function mouseHandler(e:Event=null) { trace("mouseEvent")...
来源: Laya_社区 发布时间: 20170517
...tage.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.mouseUp); Stat.show(); } // 创建地图 createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle, Handler = Laya.Handler, Browser = Laya.Browser; mX = mY = 0; // 创建地图对象 this.tiledMa...
来源: Laya2.0_示例 发布时间: 20251130
... Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; let w = 200,...
来源: Laya2.0_示例 发布时间: 20251130
...向) 但是这俩对我都不太适用 于是新加了一个 ALIGNMENT_UP 始终朝向Y轴正方向,将传值改成Vector(0,1,0)即可 2018-12-26 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 源 相关问...
来源: Laya_社区 发布时间: 20181219
....stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createApe(); createTimerLine(); Laya.stage.on( Event.KEY_DOWN, this, this.keyDown); } function createApe() { target = new Sprite(); target.loadImage("../../res/apes/monkey2.png"); Laya.stage.add...
来源: Laya_示例 发布时间: 20251130
... gameex.bar.shareCount += 1; gameex.bar.clearCountDown(); gameex.snakeSelf.updateState(EN_SNAKE_STATE_NORMAL); gameex.snakeSelf.setLength(3) gameex.buffManager.buildBuff(EN_SNAKE_BUFF_ID_1, gameex.snakeSelf, [4000]); // gameex.snakeSelf.speed = gameex.snakeSelf.speedBak gameex.resume() gameex.gameIn...
来源: Laya_社区 发布时间: 20180514
...t.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.finishScroll); } function finishScroll(){ Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off(Laya.Event.MOUSE_UP, this, this.finishScroll); } function scrollText(){ v...
来源: Laya_社区 发布时间: 20170810
...e.on(Laya.Event.MOUSE_MOVE,this,scrollText);Laya.stage.on(Laya.Event.MOUSE_UP,this,finishScrollText);}/* 停止滚动文本 */function finishScrollText(){Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.scrollText);Laya.stage.off(Laya.Event.MOUSE_UP, this, this.finishScrollText);}/* 鼠标滚动文...
来源: Laya_社区 发布时间: 20180125