大约有 7 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0017 秒)
...dImage(monkey2Path); this.ape2.loadImage(monkey2Path); this.ape1.pivot(55, 72); this.ape2.pivot(55, 72); this.ape1.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.ape2.pos(200, 0); // 一只猩猩在舞台上,另一只被添加成第一只猩猩的子级 Laya.stage.addChild(this.ape1); this...
来源: Laya2.0_示例 发布时间: 20260106
...(this.ape); this.ape.loadImage("res/apes/monkey2.png"); this.ape.pivot(55, 72); // this.ape.pos( Laya.stage.width / 2, Laya.stage.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; this.scaleDelta = 0; Laya.timer.frameLoop(1, this, this.animate); } animate() { this.a...
来源: Laya2.0_示例 发布时间: 20260106
...Con.addChild(ape); ape.loadImage(`res/apes/monkey${i}.png`); ape.pivot(55, 72).pos( Math.cos(radianUnit * i) * layoutRadius, Math.sin(radianUnit * i) * layoutRadius ); } this.apesCon.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.timer.frameLoop(1, this, this.animate); } animate() { this.ape...
来源: Laya2.0_示例 发布时间: 20260106
...e1.loadImage(monkey2Path); // 设置轴心点为中心 this.ape1.pivot(55, 72); this.ape1.pos(Laya.stage.width / 2 - gap, Laya.stage.height / 2); // 不设置轴心点默认为左上角 this.ape2 = new Sprite(); Laya.stage.addChild(this.ape2); this.ape2.loadImage(monkey2Path); this.ape2.pos(Laya.sta...
来源: Laya2.0_示例 发布时间: 20260106
...ape = new Laya.Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.switchTexture(); this.ape.on(Laya.Event.CLICK, this, this.switchTexture); } switchTexture() { let monkey = (this.flag = !this.flag) ? monkey1Res : monkey2Re...
来源: Laya2.0_示例 发布时间: 20260106
...get); this.target.loadImage("res/apes/monkey2.png"); this.target.pivot(55, 72); this.target.pos(100,100); } createTimerLine() { const TimeLine = Laya.TimeLine, Event = Laya.Event; this.timeLine = new TimeLine(); // addLabel(label:String, offset:Number) offset: 标签事件相对于上个动画的偏...
来源: Laya2.0_示例 发布时间: 20260106
...ody); const p1 = [54 * s * this.scale, -61 * -1 * this.scale]; const p2 = [72 * s * this.scale, -12 * -1 * this.scale]; const p3 = [43 * s * this.scale, -19 * -1 * this.scale]; const p4 = [31 * s * this.scale, 8 * -1 * this.scale]; const p5 = [60 * s * this.scale, 15 * -1 * this.scale]; const p6 = [...
来源: Laya2.0_示例 发布时间: 20260106