完善结算页动效

This commit is contained in:
2025-06-04 17:12:03 +08:00
parent aa98af09b2
commit 4a44f5749e
7 changed files with 61 additions and 36 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -1,6 +0,0 @@
{
"uuid": "71d84f8a-b8bc-46ae-b68b-bbb43fd588d7",
"importer": {
"textureType": 2
}
}

View File

@@ -25,6 +25,9 @@
"star2": { "star2": {
"_$ref": "c94zj9eo" "_$ref": "c94zj9eo"
}, },
"star3": {
"_$ref": "lusyix89"
},
"star4": { "star4": {
"_$ref": "kn1x3k7e" "_$ref": "kn1x3k7e"
}, },
@@ -172,9 +175,9 @@
"name": "check(1)", "name": "check(1)",
"x": 69, "x": 69,
"y": 19, "y": 19,
"width": 308, "width": 306,
"height": 309, "height": 307,
"skin": "res://71d84f8a-b8bc-46ae-b68b-bbb43fd588d7", "skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"useSourceSize": true, "useSourceSize": true,
"color": "#ffffff" "color": "#ffffff"
}, },
@@ -196,10 +199,10 @@
"name": "check(3)", "name": "check(3)",
"x": 696, "x": 696,
"y": -35, "y": -35,
"width": 308, "width": 306,
"height": 309, "height": 307,
"rotation": 26, "rotation": 26,
"skin": "res://71d84f8a-b8bc-46ae-b68b-bbb43fd588d7", "skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"useSourceSize": true, "useSourceSize": true,
"color": "#ffffff" "color": "#ffffff"
} }

View File

@@ -23,6 +23,9 @@
"star2": { "star2": {
"_$ref": "92i5b9b6" "_$ref": "92i5b9b6"
}, },
"star3": {
"_$ref": "qq8zxqnu"
},
"star4": { "star4": {
"_$ref": "r3vdvcfa" "_$ref": "r3vdvcfa"
}, },
@@ -177,7 +180,7 @@
"y": 33, "y": 33,
"width": 190, "width": 190,
"height": 190, "height": 190,
"skin": "res://71d84f8a-b8bc-46ae-b68b-bbb43fd588d7", "skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"color": "#ffffff" "color": "#ffffff"
}, },
{ {
@@ -200,7 +203,7 @@
"width": 190, "width": 190,
"height": 190, "height": 190,
"rotation": 28, "rotation": 28,
"skin": "res://71d84f8a-b8bc-46ae-b68b-bbb43fd588d7", "skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"color": "#ffffff" "color": "#ffffff"
} }
] ]

View File

@@ -25,6 +25,9 @@
"star2": { "star2": {
"_$ref": "7m6pwbe2" "_$ref": "7m6pwbe2"
}, },
"star3": {
"_$ref": "svxs9o8h"
},
"star4": { "star4": {
"_$ref": "08ict2h8" "_$ref": "08ict2h8"
}, },
@@ -169,12 +172,14 @@
"_$id": "c911dc1t", "_$id": "c911dc1t",
"_$type": "Image", "_$type": "Image",
"name": "check(1)", "name": "check(1)",
"x": 69, "x": 217,
"y": 19, "y": 188,
"width": 308, "width": 252,
"height": 309, "height": 252,
"skin": "res://71d84f8a-b8bc-46ae-b68b-bbb43fd588d7", "anchorX": 0.5,
"useSourceSize": true, "anchorY": 0.5,
"rotation": -15,
"skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"color": "#ffffff" "color": "#ffffff"
}, },
{ {
@@ -193,13 +198,14 @@
"_$id": "svxs9o8h", "_$id": "svxs9o8h",
"_$type": "Image", "_$type": "Image",
"name": "check(3)", "name": "check(3)",
"x": 696, "x": 759.0132866424543,
"y": -35, "y": 189.48281388005253,
"width": 308, "width": 252,
"height": 309, "height": 252,
"rotation": 26, "anchorX": 0.5,
"skin": "res://71d84f8a-b8bc-46ae-b68b-bbb43fd588d7", "anchorY": 0.5,
"useSourceSize": true, "rotation": 20,
"skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"color": "#ffffff" "color": "#ffffff"
} }
] ]

View File

@@ -24,6 +24,9 @@
"star2": { "star2": {
"_$ref": "zyknbizk" "_$ref": "zyknbizk"
}, },
"star3": {
"_$ref": "51j0ljjv"
},
"star4": { "star4": {
"_$ref": "0g7sbrhd" "_$ref": "0g7sbrhd"
}, },
@@ -173,11 +176,14 @@
"_$id": "dy7essc0", "_$id": "dy7essc0",
"_$type": "Image", "_$type": "Image",
"name": "check(1)", "name": "check(1)",
"x": 190, "x": 263,
"y": 33, "y": 128,
"width": 190, "width": 190,
"height": 190, "height": 190,
"skin": "res://71d84f8a-b8bc-46ae-b68b-bbb43fd588d7", "anchorX": 0.5,
"anchorY": 0.5,
"rotation": -13,
"skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"color": "#ffffff" "color": "#ffffff"
}, },
{ {
@@ -195,12 +201,14 @@
"_$id": "51j0ljjv", "_$id": "51j0ljjv",
"_$type": "Image", "_$type": "Image",
"name": "check(3)", "name": "check(3)",
"x": 630, "x": 686.2802239279707,
"y": -8, "y": 120.47981945881025,
"width": 190, "width": 190,
"height": 190, "height": 190,
"rotation": 28, "anchorX": 0.5,
"skin": "res://71d84f8a-b8bc-46ae-b68b-bbb43fd588d7", "anchorY": 0.5,
"rotation": 8,
"skin": "res://902e1f3a-6f95-4796-8449-974ae5354d72",
"color": "#ffffff" "color": "#ffffff"
} }
] ]

View File

@@ -24,6 +24,9 @@ export class GameDone extends Laya.Script {
@property(Laya.Image) @property(Laya.Image)
public star2: Laya.Image public star2: Laya.Image
@property(Laya.Image)
public star3: Laya.Image
@property(Laya.Image) @property(Laya.Image)
public star4: Laya.Image public star4: Laya.Image
@@ -59,6 +62,9 @@ export class GameDone extends Laya.Script {
this.star2.scaleX = 1.2 this.star2.scaleX = 1.2
this.star2.scaleY = 1.2 this.star2.scaleY = 1.2
this.star3.scaleX = 1.2
this.star3.scaleY = 1.2
this.star4.scaleX = 1.2 this.star4.scaleX = 1.2
this.star4.scaleY = 1.2 this.star4.scaleY = 1.2
} }
@@ -79,16 +85,21 @@ export class GameDone extends Laya.Script {
this.star2.y = y2 - 10 this.star2.y = y2 - 10
Laya.Tween.to(this.star2, { y: y2 }, 300, Laya.Ease.elasticOut, null, 600) Laya.Tween.to(this.star2, { y: y2 }, 300, Laya.Ease.elasticOut, null, 600)
Laya.Tween.to(this.star3, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 800)
const y3 = this.star3.y
this.star3.y = y3 - 10
Laya.Tween.to(this.star3, { y: y3 }, 300, Laya.Ease.elasticOut, null, 800)
Laya.Tween.to(this.star4, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 600) Laya.Tween.to(this.star4, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 600)
const y4 = this.star4.y const y4 = this.star4.y
this.star4.y = y4 - 10 this.star4.y = y4 - 10
Laya.Tween.to(this.star4, { y: y4 }, 300, Laya.Ease.elasticOut, null, 600) Laya.Tween.to(this.star4, { y: y4 }, 300, Laya.Ease.elasticOut, null, 600)
this.obj_light.alpha = 0 this.obj_light.alpha = 0
Laya.Tween.to(this.obj_light, { alpha: 0.2 }, 500, Laya.Ease.elasticOut, null, 800) Laya.Tween.to(this.obj_light, { alpha: 0.2 }, 500, Laya.Ease.elasticOut, null, 1000)
this.btn_new.alpha = 0 this.btn_new.alpha = 0
Laya.Tween.to(this.btn_new, { alpha: 1 }, 300, Laya.Ease.elasticOut, null, 1000) Laya.Tween.to(this.btn_new, { alpha: 1 }, 300, Laya.Ease.elasticOut, null, 1200)
} }
public onSetStageInfo(doStage: DOStage): void { public onSetStageInfo(doStage: DOStage): void {