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

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

1. 区块地图-滚动地图 [ 100%]

... = "#232628"; this.createMap(); 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 =...

来源: Laya2.0_示例 发布时间: 20240930

2. 其他引擎的Demo-Example_21 [ 85%]

...ateCanvases(); Laya.timer.frameLoop(1, this, this.animate); Laya.stage.on('mousedown', this, this.onMouseDown); Laya.stage.on('mousemove', this, this.onMouseMove); Laya.stage.on('mouseup', this, this.onMouseUp); } createCanvases() { const Sprite = Laya.Sprite; let graphicsCanvas = new Sprite(); Laya...

来源: Laya2.0_示例 发布时间: 20240930

3. UI-RefreshList [ 82%]

...* 纪录鼠标按下状态,true为已按下,用于状态判断 */ this.mouseDown=false; /** 初始化场景 * */ /** 关联引擎的滚动限制接口 */ /**列表的鼠标事件处理,常用于处理单元格上的点击事件等 */ /** 列表单元格上的鼠标抬起时处理恢复逻辑 *...

来源: Laya2.0_示例 发布时间: 20240930

4. 2D物理-碰撞过滤器 [ 82%]

...e.bgColor = "#232628"; this.createHouse(); for (let i = 1; i mouseJoint).onMouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.destoryJoint); Laya.stage.on(Event.MOUSE_OUT, this, this.destoryJoint); // 方案二,自己实现,可以实现更大程度的控制 // Laya.stage.on(Event.MOUSE_MOVE, t...

来源: Laya2.0_示例 发布时间: 20240930