From a53693da8ac34df9ab9828df7fb2e069c3a72850 Mon Sep 17 00:00:00 2001 From: TJH Date: Fri, 26 Sep 2025 16:03:56 +0800 Subject: [PATCH] =?UTF-8?q?multimove=E7=9A=84=E7=A7=BB=E5=8A=A8=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Game/prefabs/SlotScene.prefab | 114 +++++++++++++-------------- assets/Game/scripts/SlotGame.ts | 6 +- assets/Game/scripts/game/Icon.ts | 24 ++++-- 3 files changed, 79 insertions(+), 65 deletions(-) diff --git a/assets/Game/prefabs/SlotScene.prefab b/assets/Game/prefabs/SlotScene.prefab index 0e01922..cfdce94 100644 --- a/assets/Game/prefabs/SlotScene.prefab +++ b/assets/Game/prefabs/SlotScene.prefab @@ -2588,7 +2588,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "d4Rpz1eYtMYq5qinIWtP4Y" + "fileId": "97qR41WJxKJJJy9bJnbW1j" }, { "__type__": "cc.PrefabInfo", @@ -2598,7 +2598,7 @@ "asset": { "__id__": 0 }, - "fileId": "88UqvBF1RBGaqwZIxsO0yy", + "fileId": "23vkFVFCpEvrP4Hpkwr5bM", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2629,7 +2629,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "1cYWr/2x1ImYeNxXjmxhx2" + "fileId": "d955HVHZ9GUqD+3ysgOMvC" }, { "__type__": "cc.PrefabInfo", @@ -2639,7 +2639,7 @@ "asset": { "__id__": 0 }, - "fileId": "966C5Pj/lBG4MsJOSE4vIu", + "fileId": "450Pf9NUBKcbeKAY0YNfkb", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2670,7 +2670,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "a2APdg5c5FBLcHNqp0kQkT" + "fileId": "c1JVUuswVP0L59YN0F8nhv" }, { "__type__": "5fc10Zl7lVO97/rr2J1uxWH", @@ -2694,7 +2694,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "e5dUPoYL5IZKjL9JKzhLTS" + "fileId": "76jowdEkRBrJJoGmBP5UGf" }, { "__type__": "5fd13+Xa69CZogb3Q/F1lnC", @@ -2867,7 +2867,7 @@ "asset": { "__id__": 0 }, - "fileId": "9eXGxbXItDYLAOlXpj2VXB", + "fileId": "1druggF/JLa5ISed4zEuQk", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -2892,7 +2892,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "4dFskPBTJKGr/YWm3ctxxD" + "fileId": "aaDbE3fYFDl6Aku8GR0vht" }, { "__type__": "cc.UITransform", @@ -2920,7 +2920,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "63pGbKgV5Kh5edStyJ0RrJ" + "fileId": "283sx/R6VKq5GHhAxqdlWn" }, { "__type__": "cc.Sprite", @@ -2965,7 +2965,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "9dD0QhQE9JCaXl0aHgdD2L" + "fileId": "d5dv50OgdGoqUTD0JVnKwr" }, { "__type__": "cc.PrefabInfo", @@ -2975,7 +2975,7 @@ "asset": { "__id__": 0 }, - "fileId": "8aIlDixC5OSKaY5kQxUnyh", + "fileId": "e4MG3tr+RCfayu2UjZX2r2", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3230,7 +3230,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "c6tqde/yVNEYHXR3qBIRB+" + "fileId": "c6TU3OFGZHmZQCQ0QleJ7H" }, { "__type__": "cc.PrefabInfo", @@ -3240,7 +3240,7 @@ "asset": { "__id__": 0 }, - "fileId": "7cc4AAKHlPu4VIUw+7SoFy", + "fileId": "e033kTsvRNm736+aKAL9FW", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3271,7 +3271,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "25H+GvQIJG5ZuxyeEsNYSx" + "fileId": "5b/Duw725PjYwSmaNW9TQM" }, { "__type__": "cc.PrefabInfo", @@ -3281,7 +3281,7 @@ "asset": { "__id__": 0 }, - "fileId": "105oUAjLFKA7x0rkQNlrgi", + "fileId": "betOKTB3BHup+OM43NWr+n", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3312,7 +3312,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "a12FaYdNNIg66znefiYEhJ" + "fileId": "d49I6hS25LjI4dkq+4O4zB" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3336,7 +3336,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "b7tGonEEZKF6XKB2l96hXF" + "fileId": "20HiIFhCxFj5Jv/ZU4NLZP" }, { "__type__": "cc.PrefabInfo", @@ -3346,7 +3346,7 @@ "asset": { "__id__": 0 }, - "fileId": "a22uher69OGIUbDZhq7+eZ", + "fileId": "05b0VXxXtM0o92+gWg8OTO", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3529,7 +3529,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "d08oceyIdO44gF2rMN4u9U" + "fileId": "64DO4OgFNNx6tWC0xZpHLD" }, { "__type__": "cc.PrefabInfo", @@ -3539,7 +3539,7 @@ "asset": { "__id__": 0 }, - "fileId": "863Iy7TMdAF7M6azPH6isM", + "fileId": "866bbR+2lIfLUir+OnijV+", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3570,7 +3570,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "53kRdibE1LyKEO7qlU8eWv" + "fileId": "7bx3IW2aVGYbVSLNqKgvsW" }, { "__type__": "cc.PrefabInfo", @@ -3580,7 +3580,7 @@ "asset": { "__id__": 0 }, - "fileId": "31IHXyjydNXJ1hMITx0AIU", + "fileId": "bdPQOjVuhKDoFCMWa4BTmI", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3611,7 +3611,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "e8jGs2AAdIaq8v3pjPyUYB" + "fileId": "a04FF/fadNFqSUcR2oEW52" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3635,7 +3635,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "64qI+0PC1B7Is5nGKEpoTP" + "fileId": "d9HomDaHlBYqJtYwRohhx2" }, { "__type__": "cc.PrefabInfo", @@ -3645,7 +3645,7 @@ "asset": { "__id__": 0 }, - "fileId": "da0WD1bdRDMKseAxJDOJ/P", + "fileId": "50AavRNjpBg7XRq/OhJIhO", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3828,7 +3828,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "d8z4neUkVOQJv28uJF1SGn" + "fileId": "eaB0LgkZxN/7SbATFMRJDy" }, { "__type__": "cc.PrefabInfo", @@ -3838,7 +3838,7 @@ "asset": { "__id__": 0 }, - "fileId": "b0zMIKfptK9LJFvF6tc64t", + "fileId": "ccx6JowIhE3qvhr+SOAJgt", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3869,7 +3869,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "d8zrHLoEtJ7r7piAFSlTBG" + "fileId": "fcxLBrKRRCz61KXMmWJYHj" }, { "__type__": "cc.PrefabInfo", @@ -3879,7 +3879,7 @@ "asset": { "__id__": 0 }, - "fileId": "61XZqX9WFKL4Mt81onTu68", + "fileId": "9cFlFiOy1F8oL1JI4dqE+T", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -3910,7 +3910,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "97JgT+7ABGQouXejPB5pGQ" + "fileId": "585B73lphCHp9hGP1IGf67" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -3934,7 +3934,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "85COOHu/NO0rGrxI7YKGuf" + "fileId": "cclgmQCERILoX1kEpNgnK4" }, { "__type__": "cc.PrefabInfo", @@ -3944,7 +3944,7 @@ "asset": { "__id__": 0 }, - "fileId": "f0C3Xe2vpAm4c9Jx7lJe+e", + "fileId": "4eGUNloLJHEYvpq3Doh2xz", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4127,7 +4127,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "f8kJBWHsNF97nclTPHdRzf" + "fileId": "f13a3snp5DgpnWVvnF2Z46" }, { "__type__": "cc.PrefabInfo", @@ -4137,7 +4137,7 @@ "asset": { "__id__": 0 }, - "fileId": "d2Xk4tiHRFYahbaMC93H+4", + "fileId": "27HB/Oue9ACKgKR5vFSlTP", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4168,7 +4168,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "5cEKdnpBpFIb+XTmsrzTpx" + "fileId": "60RE1T/7RIdbVx+nz/CDP3" }, { "__type__": "cc.PrefabInfo", @@ -4178,7 +4178,7 @@ "asset": { "__id__": 0 }, - "fileId": "afPsyXScBKVbbqbH6IOPot", + "fileId": "89JrY7DUNAZpCKGBZg4YU0", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4209,7 +4209,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "38cqjJpnhLR7HiV4h5e25e" + "fileId": "afd6IOvMdFtaOETVMhIJmT" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -4233,7 +4233,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "abQRY3aiRO061i5PXE/PA6" + "fileId": "2cjfLiBtJOW6bC8JUhFwua" }, { "__type__": "cc.PrefabInfo", @@ -4243,7 +4243,7 @@ "asset": { "__id__": 0 }, - "fileId": "c1in4UN0tAc7vfEbyJ/nv7", + "fileId": "fagCMiN4tP25ZJydcsv/nk", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4426,7 +4426,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "4c95TWqiVHbKrAscQPFj/e" + "fileId": "e3MjJcTOhEIJqtGWIzo2FF" }, { "__type__": "cc.PrefabInfo", @@ -4436,7 +4436,7 @@ "asset": { "__id__": 0 }, - "fileId": "003EHxVchDaqNfqpndLIVB", + "fileId": "9aIZcDTXBJTrpPCUf1h6d+", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4467,7 +4467,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "34ARJzreFN964eAcax/xRl" + "fileId": "25Akeo8DZKQ41zUn6tnCWO" }, { "__type__": "cc.PrefabInfo", @@ -4477,7 +4477,7 @@ "asset": { "__id__": 0 }, - "fileId": "95NkqOO+BE5aR39n5rmq7N", + "fileId": "b4gqJ54iNC4a2ACmqPXQwV", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4508,7 +4508,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "2eafGVdTdFMrCvIRslqja+" + "fileId": "1dKFoazZxCqJb61mXEMLR7" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -4532,7 +4532,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "49hH9sONFI6pTWaS3vmxCp" + "fileId": "90B4ntkg1Kg6VLHqPFMOsx" }, { "__type__": "cc.PrefabInfo", @@ -4542,7 +4542,7 @@ "asset": { "__id__": 0 }, - "fileId": "deiceoNz1G5IujmmsFjE44", + "fileId": "101VDy3iJIwq/Eb7C25kxj", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4725,7 +4725,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "caiWFbXyxB+pPPJN1bvrFX" + "fileId": "d5r+3UaRVD8qGHkj2wtcO/" }, { "__type__": "cc.PrefabInfo", @@ -4735,7 +4735,7 @@ "asset": { "__id__": 0 }, - "fileId": "82u7c+viNJc4/nYZHkFeXp", + "fileId": "50s2+pM2hBUKjMIN1lRctO", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4766,7 +4766,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "09YUYX6qlIUY8uyPU12zMU" + "fileId": "38mmU6MpxChL2gmbr/7INA" }, { "__type__": "cc.PrefabInfo", @@ -4776,7 +4776,7 @@ "asset": { "__id__": 0 }, - "fileId": "5cUEa6WGtMF6gF1Sr6j1TZ", + "fileId": "10uBS/GApFDp+O6KZ7LCV3", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4807,7 +4807,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "34/1mGZgNFk4HjFY+cgGsX" + "fileId": "e6dRLsALlPEqGelC5+IF36" }, { "__type__": "45522uB1sdFu4FJAojtnha4", @@ -4831,7 +4831,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "7dOy9EngtDV79jGq3uBqI6" + "fileId": "ccAbHaScBIlLXmVxrAqsuT" }, { "__type__": "cc.PrefabInfo", @@ -4841,7 +4841,7 @@ "asset": { "__id__": 0 }, - "fileId": "9ao4vBjvNN0qMJuqXRgAH3", + "fileId": "77vpKC+C1MB6fnwo+c3ak9", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null @@ -4866,7 +4866,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "88sZiKwdZPubhkCQStBorR" + "fileId": "e23xfYrmtBbLxPX140o4gj" }, { "__type__": "cc.UITransform", @@ -4894,7 +4894,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "3ddptzUWlPrJ872U7z3onM" + "fileId": "0fRy2LgcNOra3nDx/OH2X6" }, { "__type__": "cc.Sprite", @@ -4939,7 +4939,7 @@ }, { "__type__": "cc.CompPrefabInfo", - "fileId": "0dgmU7hsJNkais/sh2YQE7" + "fileId": "15HhvhZwhFC4e7WzenHvfy" }, { "__type__": "cc.PrefabInfo", @@ -4949,7 +4949,7 @@ "asset": { "__id__": 0 }, - "fileId": "3fKii4YoFAWJ0462erHDPC", + "fileId": "b7cLZXPmNJPayV2Mhhkt9h", "instance": null, "targetOverrides": null, "nestedPrefabInstanceRoots": null diff --git a/assets/Game/scripts/SlotGame.ts b/assets/Game/scripts/SlotGame.ts index 2793b33..d4f3dd4 100644 --- a/assets/Game/scripts/SlotGame.ts +++ b/assets/Game/scripts/SlotGame.ts @@ -438,7 +438,7 @@ export class SlotGame extends Component { multi.getComponent(UIOpacity).opacity = 150 tween(multiCopy) .delay(0.3) - .to(1, { scale: new Vec3(0.8, 0.8, 1) }) + .to(1, { scale: new Vec3(1.1, 1.1, 1) }) .start() tween(multiCopy) @@ -461,7 +461,7 @@ export class SlotGame extends Component { multiCopy.setScale(0, 0, 0) tween(multiCopy) .delay(0.7) - .to(0.3, { scale: new Vec3(1, 1, 1) }) + .to(0.3, { scale: new Vec3(1.2, 1.2, 1) }) .to(0.3, { scale: new Vec3(0, 0, 0) }) .start() @@ -473,7 +473,7 @@ export class SlotGame extends Component { tween(multiCopy) .delay(1) - .to(0.3, { position: new Vec3(0, -450, 0) }) + .to(0.3, { position: new Vec3(0, -400, 0) }) .call(() => { multiCopy.destroy() }) diff --git a/assets/Game/scripts/game/Icon.ts b/assets/Game/scripts/game/Icon.ts index 3294904..ba52b13 100644 --- a/assets/Game/scripts/game/Icon.ts +++ b/assets/Game/scripts/game/Icon.ts @@ -1,4 +1,4 @@ -import { _decorator, Component, Node, Prefab, sp, Sprite, UITransform, Vec3, v3, EventTarget, Label, tween, UIOpacity, instantiate, SpriteFrame } from 'cc'; +import { _decorator, Component, Node, Prefab, sp, Sprite, UITransform, Vec3, v3, EventTarget, Label, tween, UIOpacity, instantiate, SpriteFrame, Tween } from 'cc'; import { ICON_STATE, ICON_WIDTH } from './Define'; import { GameDataManager } from 'db://assets/Loading/scripts/manager/GameDataManager'; import { NodePoolManager } from 'db://assets/Loading/scripts/manager/NodePoolManager'; @@ -319,6 +319,15 @@ export class Icon extends Component { this._multi = multi this._normalSpriteNode.getComponent(Sprite).spriteFrame = this.multiSprite[multi] this._fastSpriteNode.getComponent(Sprite).spriteFrame = this.multiBlurSprite[multi] + Tween.stopAllByTarget(this._normalSpriteNode) + let loopTween = + tween(this._normalSpriteNode) + .to(0.5, { scale: new Vec3(1.1, 1.1, 1) }) + .to(0.5, { scale: new Vec3(1, 1, 1) }) + + tween(this._normalSpriteNode) + .repeatForever(loopTween) + .start() switch (true) { case multi < 4: this._normalNode.children[0].active = true @@ -335,7 +344,6 @@ export class Icon extends Component { this._normalNode.children[1].active = true this._normalNode.children[2].active = false break - } } @@ -498,13 +506,14 @@ export class Icon extends Component { } let slotGame = this.node.parent.parent.parent.parent.parent.parent this._normalSpriteNode.getComponent(UIOpacity).opacity = 150 + Tween.stopAllByTarget(this._normalSpriteNode) let multiMoveNode = instantiate(slotGame.getChildByName('multiMove')) let bigMultiNode = slotGame.parent.getChildByName('showMulti') let bigMultiLabel = bigMultiNode.getChildByName('multi') let isFreeSpin = slotGame.getComponent(SlotGame).isInfreeSpin let isHasScore = XnInfo.Win != "" - let multiMovePos = -500 + let multiMovePos = -550 if (isFreeSpin && !isHasScore) { multiMovePos = -400 @@ -516,11 +525,16 @@ export class Icon extends Component { tween(multiMoveNode) .delay(0.3) - .to(1, { scale: new Vec3(0.8, 0.8, 1) }) + .to(1, { scale: new Vec3(1.1, 1.1, 1) }) + .start() + + tween(multiMoveNode.getComponent(UIOpacity)) + .delay(0.3) + .to(1, { opacity: 80 }) .start() tween(multiMoveNode) - .to(0.3, { scale: new Vec3(1.4, 1.4, 1) }) + .to(0.3, { scale: new Vec3(1.5, 1.5, 1) }) .to(1, { position: new Vec3(0, 200, 0) }) .call(() => { multiMoveNode.destroy()