大约有 134 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0033 秒)
...E_MOVE, this, this.mouseMove); // Laya.stage.on(Event.MOUSE_UP, this, this.mouseUp); // Laya.stage.on(Event.MOUSE_OUT, this, this.mouseUp); // let rigidbody = this.curTarget.getComponent(RigidBody); // rigidbody.type = "kinematic"; } mouseMove(e) { let movementX = e.nativeEvent.movementX; let moveme...
来源: Laya2.0_示例 发布时间: 20250311
...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/desert.json",...
来源: Laya_示例 发布时间: 20250311
...OUSE_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.tiledMap = new TiledMa...
来源: Laya2.0_示例 发布时间: 20250311
...on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OUT, this, mouseOut); var camera:BaseCamera = owner.scene.currentCamera; 没有了 -- currentCamera 2017-02-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...
来源: Laya_社区 发布时间: 20170218
...nMouseDown); Laya.stage.on('mousemove', this, onMouseMove); Laya.stage.on('mouseup', this, onMouseUp); })(); function createCanvases() { var graphicsCanvas = new Sprite(); Laya.stage.addChild(graphicsCanvas); var liveGraphicsCanvas = new Sprite(); Laya.stage.addChild(liveGraphicsCanvas); liveGraphic...
来源: Laya_示例 发布时间: 20250311
...eDown); Laya.stage.on('mousemove', this, this.onMouseMove); Laya.stage.on('mouseup', this, this.onMouseUp); } createCanvases() { const Sprite = Laya.Sprite; let graphicsCanvas = new Sprite(); Laya.stage.addChild(graphicsCanvas); let liveGraphicsCanvas = new Sprite(); Laya.stage.addChild(liveGraphics...
来源: Laya2.0_示例 发布时间: 20250311
...Laya.stage.on("mousedown", this, this.mouseDown); Laya.stage.on("mouseup", this, this.mouseUp); Laya.stage.on("mouseout", this, this.mouseOut); _this.Obj = owner; } // ObjectRotate.prototype._update = function (state) { ObjectRotate.__super.prototype._update.call(th...
来源: Laya_社区 发布时间: 20170810
... Laya.stage.on(Laya.Event.MOUSE_UP, this, function(){console.log("mouseup")}); mouseup能正常监听到,stage上加的MOUSE_OUT事件,当鼠标移出屏幕时,在浏览器不开device模式下能正常响应,手机上或者浏览器打开device模式时响应不了。请问...
来源: Laya_社区 发布时间: 20200407
...on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图http://layaair.ldc.layabox.com/api/ function createMap() { //创建地图对象 tiledMap = new TiledMap(); mX = mY = 0; //创建地图,适当的时候调用destory销毁地图 tiledMap.createMa...
来源: Laya_社区 发布时间: 20171205
...OUSE_DOWN,this,this.mouseDown) Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp) this.moveMap(this.offsetX,this.offsetY) } moveMap(x,y){ let X = -x00 let Y = -y00 this.map0.x = X this.map0.y = Y this.map3.x = X + 1800 this.map3.y = Y + 1800 if(X < -540){ this.map1.x = X + 1800 this.map1.y = Y ...
来源: Laya_社区 发布时间: 20181220