大约有 140 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0034 秒)
Laya_社区(86) Laya_示例(13) Laya2.0_文档(12) Laya2.0_示例(10) Laya2.0_api(6) laya_api(6) Laya3.0_文档(6) Laya3.0_api(1)
...28"; 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.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h /...
来源: Laya_示例 发布时间: 20241117
...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, h = 300; this.sp = new Sprite(); Laya.stage.addChild(this....
来源: Laya2.0_示例 发布时间: 20241117
...USE_DOWN ,this, this.onMouseDown); this.on(laya.events.Event.MOUSE_UP ,this, this.onMouseUp); } private onMouseDownX : number; private onMouseDownY : number; private isMove : boolean ; onMouseDown(e : laya.events.Event):void{ ...
来源: Laya_社区 发布时间: 20160823
...p(); Laya.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/tiledM...
来源: Laya_示例 发布时间: 20241117
...Laya.stage.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.t...
来源: Laya2.0_示例 发布时间: 20241117
...28"; 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 = 300, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h /...
来源: Laya_示例 发布时间: 20241117
...tup() { const Event = Laya.Event; 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 = 300, h = 300; this.sp = new Sprite(); Laya.stage.addChild(this....
来源: Laya2.0_示例 发布时间: 20241117
... function onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya...
来源: Laya_社区 发布时间: 20180911
...w1114367261: spr.on(Event.MOUSE_DOWN, this, onStartDrag,arr); spr.on(Event.MOUSE_UP,this, onStopDrag,arr);,我就这两个函数,监听spr,这个sprite对象,然后再舞台上死命甩,就有可能会导致up事件不会触发呢,我都要打印,down执行拖拽,up停止拖拽 lengy...
来源: Laya_社区 发布时间: 20180419
...SE_DOWN); Laya.stage.off(Laya.Event.MOUSE_MOVE); Laya.stage.off(Laya.Event.MOUSE_UP) Laya.stage.off(Laya.Event.MOUSE_OUT); // 鼠标按下事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this.snakeSelf, this.snakeSelf.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this.snakeSelf, this.snakeSelf.onMou...
来源: Laya_社区 发布时间: 20180514