Compare commits

...

4 Commits

Author SHA1 Message Date
TJH
0def2ba2a8 wild和scatter动画的播放问题
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m0s
2025-09-26 14:55:26 +08:00
TJH
314c62d802 消除动画播放时间调整 2025-09-26 14:11:17 +08:00
TJH
c14079e234 multiMove移动距离调整,readyHand层级调整 2025-09-26 13:58:41 +08:00
TJH
a1f6b2df6a 小游戏剩余次数大于10时的问题 2025-09-26 13:49:08 +08:00
9 changed files with 1323 additions and 1177 deletions

View File

@ -239,10 +239,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": {
"__uuid__": "7b015c97-60ec-4ce8-bdf3-3dce8e615665",
"__expectedType__": "cc.SpriteAtlas"
},
"_atlas": null,
"_id": ""
},
{

View File

@ -69,7 +69,7 @@
"__id__": 1
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 3
@ -165,7 +165,7 @@
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "<None>",
"defaultAnimation": "anim1",
"_premultipliedAlpha": false,
"_timeScale": 1,
"_preCacheMode": 0,

File diff suppressed because it is too large Load Diff

View File

@ -581,10 +581,21 @@ export class SlotBar extends Component {
showLeftCount(leftCount: number) {
if (leftCount >= 1) {
let rfs = this.left_1.getChildByName('rfs');
let leftCount_1 = this.leftCount.node.getChildByName('leftCount_1').getComponent(sp.Skeleton)
rfs.getComponent(LocalizedSprite).updateSprite();
this.left_1.getComponent(Layout).updateLayout();
this.left_1.active = true;
this.leftCount.setAnimation(0, `anim_${leftCount}`, true)
if (leftCount >= 10) {
let num1 = leftCount / 10
let num2 = leftCount % 10
leftCount_1.node.active = true
this.leftCount.setAnimation(0, `anim_${num1}`, true)
leftCount_1.setAnimation(0, `anim_${num2}`, true)
} else {
leftCount_1.node.active = false
this.leftCount.setAnimation(0, `anim_${leftCount}`, true)
}
this.left_2.active = false;
} else {
this.left_1.active = false;

View File

@ -430,8 +430,6 @@ export class SlotGame extends Component {
let multi = this.node.getChildByPath('free/multi')
let multiCopy = instantiate(multi)
// let bigMultiNode = this.node.parent.getChildByName('showMulti')
// let bigMultiLabel = bigMultiNode.getChildByName('multi')
multiCopy.parent = this.node
multiCopy.setWorldPosition(multi.getWorldPosition())

View File

@ -623,7 +623,7 @@ export class HRoller extends BaseRoller {
iconComponent.playDeleteAni();
this.scheduleOnce(() => {
this.iconFactory.recycleIcon(iconNode);
}, 1.5)
}, 1.3)
}
this.node.emit(ROLLER_EVENT.ICON_DELETED, this._rollerId);

View File

@ -431,11 +431,10 @@ export class Icon extends Component {
this.iconSpine.clearTracks();
this.iconSpine.setCompleteListener(null);
if (this._iconId == 0) {
this.iconSpine.setAnimation(0, 'win', true);
this.iconSpine.setAnimation(0, 'win', false);
} else if (this._iconId == 1) {
this.iconSpine.setAnimation(0, 'win_1', true);
this.iconSpine.setAnimation(0, 'win_1', false);
}
this.iconSpine.setAnimation(0, 'win_1', false);
}
} else if (this.iconSpine && this.iconSpine.node) {
// this.iconSpine.node.active = true;
@ -505,10 +504,10 @@ export class Icon extends Component {
let bigMultiLabel = bigMultiNode.getChildByName('multi')
let isFreeSpin = slotGame.getComponent(SlotGame).isInfreeSpin
let isHasScore = XnInfo.Win != ""
let multiMovePos = -450
let multiMovePos = -500
if (isFreeSpin && !isHasScore) {
multiMovePos = -350
multiMovePos = -400
}
multiMoveNode.parent = slotGame
@ -541,7 +540,7 @@ export class Icon extends Component {
.to(0.4, { position: new Vec3(0, multiMovePos, 0) })
.to(0.3, { scale: new Vec3(0.3, 0.3, 1) })
.call(() => {
bigMultiLabel.setPosition(0, 0, 0)
bigMultiLabel.setPosition(0, 100, 0)
bigMultiLabel.setScale(0.2, 0.2, 1)
bigMultiNode.active = false
})
@ -565,6 +564,7 @@ export class Icon extends Component {
if (this._isWildOrScatter) {
// this.iconSpine.setAnimation(0, 'spawn_1', false);
// this.iconSpine.setCompleteListener(() => {
// this.iconSpine.node.active = true;
if (!this.iconSpine) return;
if (this._iconId == 0) {
this.iconSpine.setAnimation(0, 'idle', true);
@ -596,9 +596,9 @@ export class Icon extends Component {
this.iconSpine.clearTracks();
this.iconSpine.setCompleteListener(null);
if (this._iconId == 0) {
this.iconSpine.setAnimation(0, 'idle', true);
this.iconSpine.setAnimation(0, 'idle', false);
} else if (this._iconId == 1) {
this.iconSpine.setAnimation(0, 'idle_1', true);
this.iconSpine.setAnimation(0, 'idle_1', false);
}
} else if (this.iconSpine) {
this.iconSpine.node.active = false;

View File

@ -686,12 +686,12 @@ export class Roller extends BaseRoller {
iconComponent.playDeleteAni();
this.scheduleOnce(() => {
this.iconFactory.recycleIcon(iconNode);
}, 1.5)
}, 1.3)
}
this.scheduleOnce(() => {
this.node.emit(ROLLER_EVENT.ICON_DELETED, this._rollerId);
}, 1.5)
}, 1.3)
}

View File

@ -2788,13 +2788,13 @@
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 174.24000549316406,
"height": 522.280029296875
"width": 266.489990234375,
"height": 355.0199890136719
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.49988519127737446,
"y": 0.5001339833091739
"x": 0.4957034445734158,
"y": 0.539406247327176
},
"_id": "5eCOl9iDBOqrx+o9MzHH/Q"
},
@ -2819,11 +2819,11 @@
"a": 255
},
"_skeletonData": {
"__uuid__": "c4c5d54b-a1e3-4eba-b866-11cc9129f20c",
"__uuid__": "4dae9577-b214-4e57-94ad-2f1e9d7c24ed",
"__expectedType__": "sp.SkeletonData"
},
"defaultSkin": "default",
"defaultAnimation": "anim3",
"defaultAnimation": "idle_1",
"_premultipliedAlpha": false,
"_timeScale": 1,
"_preCacheMode": 0,
@ -2834,7 +2834,7 @@
"_debugBones": false,
"_debugSlots": false,
"_enableBatch": false,
"loop": false,
"loop": true,
"_id": "ab7skyMJ5L9pSQgJ0kmqWb"
},
{