• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 134 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0031 秒)

1. 2D物理-碰撞过滤器 [ 100%]

...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_示例 发布时间: 20240930

2. 区块地图-滚动地图 [ 96%]

...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_示例 发布时间: 20240930

3. 区块地图-滚动地图 [ 95%]

...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_示例 发布时间: 20240930

4. CameraMoveScript.as在哪儿下载群里的有错 [ 88%]

...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

5. 其他引擎的Demo-Example_21 [ 88%]

...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_示例 发布时间: 20240930

6. 其他引擎的Demo-Example_21 [ 88%]

...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_示例 发布时间: 20240930

7. 物体随着鼠标滑动旋转脚本 [ 85%]

...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

8. 鼠标出屏事件 [ 84%]

...    Laya.stage.on(Laya.Event.MOUSE_UP, this, function(){console.log("mouseup")});     mouseup能正常监听到,stage上加的MOUSE_OUT事件,当鼠标移出屏幕时,在浏览器不开device模式下能正常响应,手机上或者浏览器打开device模式时响应不了。请问...

来源: Laya_社区 发布时间: 20200407

9. TypeError: relativePath is undefined [ 81%]

...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

10. 重复背景,全方向地图拖动Demo [ 80%]

...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