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

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

1. 混合模式-Lighter [ 100%]

...aleFactor) / 2; } createAnimation() { let frames = []; for (let i = 1; i > 16); result.push(color >> 8 & 0xFF); result.push(color & 0xFF); return result; } onTweenComplete() { this.evalBgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHei...

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

2. 2D物理-桥 [ 68%]

...idge的随机位置")); label.top = 20; label.right = 20; label.fontSize = 16; label.color = "#e69999"; } dispose() { Laya.Laya.stage.offAll(Laya.Event.CLICK); Laya.Laya.stage.removeChild(this.label); } } new Physics_Physics_Bridge();import { Laya } from "Laya"; import { Sprite } from "laya/display/...

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

3. 2D物理-仿生机器人 [ 63%]

...新的小球刚体")); label.top = 20; label.right = 20; label.fontSize = 16; label.color = "#e69999"; } dispose() { Laya.Laya.stage.offAll(Laya.Event.CLICK); Laya.Laya.stage.offAll(Laya.Event.DOUBLE_CLICK); Laya.Laya.stage.removeChild(this.label); } } class B2Math { static AddVV(a, b) { return [a[0...

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

4. 2D物理-复合碰撞器 [ 61%]

...0个新的小刚体")); label.top = 20; label.right = 20; label.fontSize = 16; label.color = "#e69999"; Laya.Laya.stage.on(Laya.Event.DOUBLE_CLICK, this, () => { this.totalBox += 100; }); Laya.Laya.timer.frameLoop(1, this, this.addMiniBox); } dispose() { Laya.Laya.stage.offAll(Laya.Event.DOUBLE_CLIC...

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

5. 加载-销毁Texture使用的图片资源 [ 59%]

... this.txt.color = "#FF0000"; this.btn.addChild(this.txt); this.btn.pos(20, 160); Laya.stage.addChild(this.btn); //添加侦听 this.btn.on(Event.MOUSE_UP, this, this.onMouseUp); } /** * 鼠标事件响应函数 * @param evt */ onMouseUp(evt) { if (this.isDestroyed) { //通过设置 visible=true ,...

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