添加部分音效以及bigWIn修改
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m18s

This commit is contained in:
TJH 2026-05-14 16:48:48 +08:00
parent bf27756bdb
commit 1d6490fbd3
54 changed files with 203 additions and 81 deletions

View File

@ -126,13 +126,13 @@ export class BigWin extends Component {
}
startScrolling(isFirst: boolean, curType: WIN_TYPE, startValue: number, targetValue: number, callBack: () => void) {
if (curType === this.endWinType && !isFirst) {
if (curType === this.endWinType + 1 && !isFirst) {
if (this.numHolder && this.numHolder.holder) Tween.stopAllByTarget(this.numHolder.holder);
this.winCount.string = gold2cash(targetValue);
this.isScrolling = false;
if (curType == WIN_TYPE.SUPER_MEGA_WIN) {
AudioManager.instance.playBGM('Super_Mega_Win_Bgm');
}
// if (curType == WIN_TYPE.SUPER_MEGA_WIN) {
// AudioManager.instance.playBGM('Super_Mega_Win_Bgm');
// }
tween(this.winCount.node)
.to(0.1, { scale: v3(1.1, 1.1, 1.1) }, { easing: 'quadIn' })
.to(0.1, { scale: v3(1, 1, 1) }, { easing: 'quadOut' })
@ -165,7 +165,7 @@ export class BigWin extends Component {
this.tweenOpen(nextType);
this.startScrolling(false, nextType, this.winCounts[curType], this.winCounts[nextType], callBack);
} else {
this.startScrolling(false, this.endWinType, this.winCounts[curType], this.winCounts[this.endWinType], callBack);
this.startScrolling(false, this.endWinType + 1, this.winCounts[curType], this.winCounts[this.endWinType], callBack);
}
})
.start();
@ -324,7 +324,13 @@ export class BigWin extends Component {
private stopBubbleAnimation() {
if (this.bubbleTween) {
this.bubbleTween.stop();
// tween(this.bubbleNode)
// .to(0.1, { scale: v3(1, 1, 1) }, { easing: 'quadIn' })
// .to(0.2, { scale: v3(0, 0, 0) }, { easing: 'quadOut' })
// .call(() => {
this.bubbleTween = null;
// })
// .start();
}
if (this.bubbleNode && this.bubbleNode.isValid) {

View File

@ -302,6 +302,14 @@ export class Icon extends Component {
if (this.isMulti) {
return
}
if (this.iconId < 7) {
AudioManager.instance.playSFX(`Click_icon_${this.iconId}`)
} else {
AudioManager.instance.playSFX('Click_icon_7')
}
let iconMsg = await NodePoolManager.instance.getNodeFromPoolDynamic('IconMsg', 'Prefab/Others/IconMsg', 'Game');
let gameNode = find('Canvas/main/game');
if (!gameNode) return;

View File

@ -358,7 +358,7 @@ export class SlotBar extends Component {
closeMenu() {
if (this.isAnimating) return;
this.node.emit(SLOT_BAR_EVENT.CLOSE_MENU);
AudioManager.instance.playSFX("Click_Menu");
AudioManager.instance.playSFX("Click_Menu_menu");
this.isAnimating = true;
let btn_L1_opacity = this.btn_L1.getComponent(UIOpacity);
@ -477,23 +477,23 @@ export class SlotBar extends Component {
}
onClickRules() {
AudioManager.instance.playSFX("Click_Menu");
AudioManager.instance.playSFX("Click_Menu_menu");
UIManager.instance.showPopup("WebView", "history/prefabs/rules", "Game", null);
}
onClickPaytable() {
AudioManager.instance.playSFX("Click_Menu");
AudioManager.instance.playSFX("Click_Menu_menu");
UIManager.instance.showPopup("WebView", "history/prefabs/paytable", "Game", null);
}
onClickHistory() {
AudioManager.instance.playSFX("Click_Menu");
AudioManager.instance.playSFX("Click_Menu_menu");
UIManager.instance.showPopup("WebView", "history/prefabs/history", "Game", null);
}
isON = true;
onClickBtnSound() {
AudioManager.instance.playSFX("Click_Menu");
AudioManager.instance.playSFX("Click_Menu_menu");
let btns2 = this.btn_L2;
let sound = btns2.getChildByName("soundBtn");
let on = sound.getChildByName("Btn_SoundON_01");
@ -517,7 +517,7 @@ export class SlotBar extends Component {
I18nManager.instance.t("AID_QUIT_LEFT_BUTTON"),
I18nManager.instance.t("AID_ERROR_QUIT_BUTTON")
);
AudioManager.instance.playSFX("Click_Menu");
AudioManager.instance.playSFX("Click_Menu_menu");
}
onClickAutoSpin() {

View File

@ -74,6 +74,7 @@ export class SlotGame extends Component {
this.doubleWinBtnNode.getChildByName('on').active = this.doubleWinIsOn
this.doubleWinBtnNode.getChildByName('off').active = !this.doubleWinIsOn
this.updateDoubleWinNeedCount()
AudioManager.instance.playSFX('Click_Menu');
// this.doubleWinBtnNode.getChildByName('deng_off').active = !this.doubleWinIsOn
// this.doubleWinBtnNode.getChildByName('bet_label').active = !this.doubleWinIsOn
@ -567,7 +568,7 @@ export class SlotGame extends Component {
// -----------------------------购买相关-----------------------------
onClickFeatureBuy() {
AudioManager.instance.playSFX('Click_FeatureBuy_Btn');
AudioManager.instance.playSFX('Click_Menu');
this.setBtnEnableForBol(this.featureBuyNode, false);
this.setBtnEnableForBol(this.doubleWinBtnNode.getChildByName('pt_11'), false);

View File

@ -139,6 +139,14 @@ export class SlotScene extends Component {
}
this.isFreeSpin ? AudioManager.instance.playBGM("Free_Bg_Bgm") : AudioManager.instance.playBGM("Normal_Bg_Bgm");
let score = 1000000
let winType = this.checkWinType(score)
NodePoolManager.instance.getNodeFromPoolDynamic("BigWin", "Prefab/BigWin", "Game").then((prefab: Node) => {
this.node.addChild(prefab);
prefab.getComponent(BigWin).open(winType, score, this.slotBar.getBet(), null, this.isFreeSpin);
});
}
updateBg(isFreeSpin: boolean, isReconnect: boolean) {

View File

@ -978,7 +978,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1812
"height": 18120
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -11028,8 +11028,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -11714,8 +11714,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -12400,8 +12400,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -13086,8 +13086,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -13772,8 +13772,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -14458,8 +14458,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -15144,8 +15144,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -15830,8 +15830,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -16877,8 +16877,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -17788,8 +17788,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -18338,7 +18338,7 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"x": 1,
"y": 0.8,
"z": 1
},
@ -19024,8 +19024,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -19710,8 +19710,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -20396,8 +20396,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@ -21416,8 +21416,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.8,
"y": 0.8,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "ff16f9e4-d2e3-44ee-aaea-4f3e7bed7875",
"uuid": "51064731-6de7-4c3c-b8fd-8d4616d667d6",
"files": [
".json",
".mp3"

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "7447c5de-cd1d-47a2-a51e-e873a3641546",
"uuid": "808df655-cd3b-46b4-ab27-fe90afa9e8c9",
"files": [
".json",
".mp3"

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "d1adcd35-4537-4505-87a8-2ea2dca41247",
"uuid": "cb707c05-4cdd-4e31-9116-dba8c6404cac",
"files": [
".json",
".mp3"

View File

@ -1,14 +0,0 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "b9700454-aa53-4035-b116-975f3f6510e3",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "ef56c13e-11fa-4b6c-b1fc-5739fed2f6f5",
"uuid": "dbd1a5ed-573a-40ff-aeb6-430e6c3e27d9",
"files": [
".json",
".mp3"

Binary file not shown.

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "be5da60d-5ece-42ca-9d87-fc5b179bdbde",
"uuid": "59764500-f815-4f6e-b492-1212957bd52d",
"files": [
".json",
".mp3"

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "d84da62b-9629-4f2e-96bf-30e6ace0235a",
"uuid": "5b5a35ee-9434-4985-98c9-b7308a39cc87",
"files": [
".json",
".mp3"

Binary file not shown.

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "8ece85c6-e0b9-4bd6-b264-48e69994ab7e",
"uuid": "d84da62b-9629-4f2e-96bf-30e6ace0235a",
"files": [
".json",
".mp3"

View File

@ -1,14 +1 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "f7ee57ca-c3dd-4ede-934e-fe853e0242d2",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}
{"ver":"1.0.0","importer":"audio-clip","imported":true,"uuid":"1525770b-b63e-4dc2-8a9c-6a034c71a1bd","files":[".json",".mp3"],"subMetas":{},"userData":{"downloadMode":0}}

Binary file not shown.

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "b7700aa1-ed12-4ce0-86ca-ae5e32d88022",
"uuid": "f7ee57ca-c3dd-4ede-934e-fe853e0242d2",
"files": [
".json",
".mp3"

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "3695313c-fd49-4ef0-b52c-6ed264d1aa8b",
"uuid": "b37097eb-d213-4614-9d95-83ffb5257437",
"files": [
".json",
".mp3"

Binary file not shown.

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "a4fd247b-af33-4371-b2be-60197cda4f51",
"uuid": "3695313c-fd49-4ef0-b52c-6ed264d1aa8b",
"files": [
".json",
".mp3"

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "a7c04635-4629-45fe-8cb3-5d0c8f15fe54",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "96c7ad26-b07a-40a4-b3c7-f2009e2e46d8",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "f67a81d2-97b1-4646-b5ac-72fa00e6469d",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "870b489b-8118-427c-9188-7e8cc9dc7263",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "0beb6cc7-1da3-4295-95f6-89df4f5ef9ec",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "668343d4-a480-4901-847e-f8205bb89850",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "ee2e8c9a-6612-4e8e-a6da-ecd226b0d326",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "a8d4fced-01ee-4e93-8a0f-9178176a3146",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

View File

@ -2,7 +2,7 @@
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "a2a0693d-40f8-43cd-8cc0-03913bb7820c",
"uuid": "cd4c5011-639c-4ee7-b575-516bdf6963a5",
"files": [
".json",
".mp3"

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "a2a0693d-40f8-43cd-8cc0-03913bb7820c",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}