大约有 2 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0011 秒)
...距离与上次距离变化,确定是放大还是缩小 const factor = 0.01; this.sp.scaleX += (distance - lastDistance) * factor; this.sp.scaleY += (distance - lastDistance) * factor; lastDistance = distance; } onMouseUp(e) { const Event = Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.o...
来源: Laya2.0_示例 发布时间: 20241124
...* 0.3) { laser.alpha *= 0.9; laser.scaleY = laser.alpha; if (laser.alpha < 0.01) { lasers.splice(i, 1); Laya.stage.removeChild(laser); i--; } } } // increment the ticker tick += 1; } } } import laya.display.Sprite; class Laser extends Sprite { public var life:int; }
来源: Laya2.0_示例 发布时间: 20241124