大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0015 秒)
...s.progressBar.changeHandler = new Handler(this, this.onChange); Laya.timer.loop(100, this, this.changeValue); } changeValue() { if (this.progressBar.value >= 1) { this.progressBar.value = 0; } this.progressBar.value += 0.05; } onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"...
来源: Laya2.0_示例 发布时间: 20241117
...this.rotateTimeBasedText.x, this.rotateTimeBasedText.y + vGap); Laya.timer.loop(200, this, this.animateTimeBased); Laya.timer.frameLoop(2, this, this.animateFrameRateBased); } createText(text, x, y) { const Text = Laya.Text; let t = new Text(); t.text = text; t.fontSize = 30; t.color = "white"; t.bo...
来源: Laya2.0_示例 发布时间: 20241117
...D, this, this.completeHandler); this.play(); this.changeSkin(); Laya.timer.loop(1000, this, this.changeSkin); } changeSkin() { mCurrSkinIndex++; let skinLength = mSkinList.length; if (mCurrSkinIndex >= skinLength) { mCurrSkinIndex = 0; } mArmature.showSkinByName(mSkinList[mCurrSkinIndex]); } complet...
来源: Laya2.0_示例 发布时间: 20241117
...nt.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, this.animate); // 食物生产 Laya.timer.loop(3000, this, this.produceFood); // 游戏开始时有一个食物 this.produceFood(); } initSnake() { const Point = Laya.Point; for (let i = 0; i 0) { let prevSeg = ...
来源: Laya2.0_示例 发布时间: 20241117
...Collider: ChainCollider = house.addComponent(ChainCollider); chainCollider.loop = true; chainCollider.points = "600,50,100,200,100,600,1100,600,1100,200"; } private function createBox(posx, posy, width, height, ratio) { var box = new Sprite(); box.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.sta...
来源: Laya2.0_示例 发布时间: 20241117