大约有 4 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0014 秒)
....g = Math.floor(obj.g); bgColorChannels.b = Math.floor(bgColorChannels.b); var r = bgColorChannels.r.toString(16); r = r.length == 2 ? r : "0" + r; var g = bgColorChannels.g.toString(16); g = g.length == 2 ? g : "0" + g; var b = bgColorChannels.b.toString(16); b = b.length == 2 ? b : "0" + b; return...
来源: Laya2.0_示例 发布时间: 20251130
...(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); this.apeTexture = Laya.loader.getRes(this.ApePath); originalApe.x = (Laya.stage.width - this.apeTexture.width * 3) / 2; originalApe.y = (Laya.stage.height - this.apeTexture.height) ...
来源: Laya2.0_示例 发布时间: 20251130
...er.frameLoop(1, this, this.gameLoop); } private createCharacters(): void { var char: Character; var charSkin: Array; for (var i: number = 0; i = 0; i--) { this.characters[i].update(); } if (Laya.timer.currFrame % 60 === 0) { this.text.text = Stat.FPS.toString(); } } } class Character extends Sprite ...
来源: Laya2.0_示例 发布时间: 20251130
...s.TimeLine; import laya.webgl.WebGL; public class Tween_TimeLine { private var target:Sprite; private var timeLine:TimeLine = new TimeLine(); public function Tween_TimeLine() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.al...
来源: Laya2.0_示例 发布时间: 20251130