再次调整结算动效
This commit is contained in:
@@ -14,8 +14,8 @@
|
|||||||
"obj_light": {
|
"obj_light": {
|
||||||
"_$ref": "fmyff6zc"
|
"_$ref": "fmyff6zc"
|
||||||
},
|
},
|
||||||
"obj_summary": {
|
"obj_panel": {
|
||||||
"_$ref": "n4jhcwy7"
|
"_$ref": "9ijholxi"
|
||||||
},
|
},
|
||||||
"star1": {
|
"star1": {
|
||||||
"_$ref": "fxmo764l"
|
"_$ref": "fxmo764l"
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
"obj_light": {
|
"obj_light": {
|
||||||
"_$ref": "21h6okrs"
|
"_$ref": "21h6okrs"
|
||||||
},
|
},
|
||||||
"obj_summary": {
|
"obj_panel": {
|
||||||
"_$ref": "b4jktp33"
|
"_$ref": "5u982vt1"
|
||||||
},
|
},
|
||||||
"star1": {
|
"star1": {
|
||||||
"_$ref": "drl27n5v"
|
"_$ref": "drl27n5v"
|
||||||
@@ -64,10 +64,12 @@
|
|||||||
"_$id": "5u982vt1",
|
"_$id": "5u982vt1",
|
||||||
"_$type": "Box",
|
"_$type": "Box",
|
||||||
"name": "left",
|
"name": "left",
|
||||||
"x": 144,
|
"x": 618,
|
||||||
"y": 130,
|
"y": 523,
|
||||||
"width": 948,
|
"width": 948,
|
||||||
"height": 786,
|
"height": 786,
|
||||||
|
"anchorX": 0.5,
|
||||||
|
"anchorY": 0.5,
|
||||||
"left": 144,
|
"left": 144,
|
||||||
"top": 130,
|
"top": 130,
|
||||||
"_$child": [
|
"_$child": [
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
"obj_light": {
|
"obj_light": {
|
||||||
"_$ref": "8sgjzety"
|
"_$ref": "8sgjzety"
|
||||||
},
|
},
|
||||||
"obj_summary": {
|
"obj_panel": {
|
||||||
"_$ref": "b4ajczjh"
|
"_$ref": "kpsallku"
|
||||||
},
|
},
|
||||||
"star1": {
|
"star1": {
|
||||||
"_$ref": "c911dc1t"
|
"_$ref": "c911dc1t"
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
"obj_light": {
|
"obj_light": {
|
||||||
"_$ref": "3t9mq776"
|
"_$ref": "3t9mq776"
|
||||||
},
|
},
|
||||||
"obj_summary": {
|
"obj_panel": {
|
||||||
"_$ref": "nv7eszk1"
|
"_$ref": "80l6yqgl"
|
||||||
},
|
},
|
||||||
"star1": {
|
"star1": {
|
||||||
"_$ref": "dy7essc0"
|
"_$ref": "dy7essc0"
|
||||||
@@ -65,10 +65,12 @@
|
|||||||
"_$id": "80l6yqgl",
|
"_$id": "80l6yqgl",
|
||||||
"_$type": "Box",
|
"_$type": "Box",
|
||||||
"name": "left",
|
"name": "left",
|
||||||
"x": 144,
|
"x": 618,
|
||||||
"y": 130,
|
"y": 523,
|
||||||
"width": 948,
|
"width": 948,
|
||||||
"height": 786,
|
"height": 786,
|
||||||
|
"anchorX": 0.5,
|
||||||
|
"anchorY": 0.5,
|
||||||
"left": 144,
|
"left": 144,
|
||||||
"top": 130,
|
"top": 130,
|
||||||
"_$child": [
|
"_$child": [
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export class GameDone extends Laya.Script {
|
|||||||
public obj_light: Laya.Image
|
public obj_light: Laya.Image
|
||||||
|
|
||||||
@property(Laya.Box)
|
@property(Laya.Box)
|
||||||
public obj_summary: Laya.Box
|
public obj_panel: Laya.Box
|
||||||
|
|
||||||
@property(Laya.Image)
|
@property(Laya.Image)
|
||||||
public star1: Laya.Image
|
public star1: Laya.Image
|
||||||
@@ -45,33 +45,41 @@ export class GameDone extends Laya.Script {
|
|||||||
@property(Laya.Box)
|
@property(Laya.Box)
|
||||||
public btn_continue: Laya.Box
|
public btn_continue: Laya.Box
|
||||||
|
|
||||||
onStart(): void {
|
onAwake(): void {
|
||||||
this.owner.x = 0
|
this.owner.x = 0
|
||||||
this.owner.y = -this.owner.height
|
this.owner.y = -this.owner.height
|
||||||
Laya.Tween.to(this.owner, { y: 0 }, 300, Laya.Ease.elasticOut)
|
|
||||||
|
|
||||||
this.obj_summary.alpha = 0
|
this.obj_panel.alpha = 0
|
||||||
Laya.Tween.to(this.obj_summary, { alpha: 1 }, 400, Laya.Ease.elasticOut, null, 100)
|
this.obj_panel.scaleX = 0.8
|
||||||
this.obj_summary.scaleX = 0.8
|
this.obj_panel.scaleY = 0.8
|
||||||
this.obj_summary.scaleY = 0.8
|
|
||||||
Laya.Tween.to(this.obj_summary, { scaleX: 1, scaleY: 1 }, 400, Laya.Ease.elasticOut, null, 100)
|
|
||||||
|
|
||||||
this.star1.scaleX = 1.2
|
this.star1.scaleX = 1.2
|
||||||
this.star1.scaleY = 1.2
|
this.star1.scaleY = 1.2
|
||||||
|
|
||||||
|
this.star2.scaleX = 1.2
|
||||||
|
this.star2.scaleY = 1.2
|
||||||
|
|
||||||
|
this.star4.scaleX = 1.2
|
||||||
|
this.star4.scaleY = 1.2
|
||||||
|
}
|
||||||
|
|
||||||
|
onStart(): void {
|
||||||
|
|
||||||
|
Laya.Tween.to(this.owner, { y: 0 }, 300, Laya.Ease.elasticOut)
|
||||||
|
|
||||||
|
Laya.Tween.to(this.obj_panel, { alpha: 1 }, 400, Laya.Ease.elasticOut, null, 100)
|
||||||
|
Laya.Tween.to(this.obj_panel, { scaleX: 1, scaleY: 1 }, 400, Laya.Ease.elasticOut, null, 100)
|
||||||
|
|
||||||
Laya.Tween.to(this.star1, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 400)
|
Laya.Tween.to(this.star1, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 400)
|
||||||
const y1 = this.star1.y
|
const y1 = this.star1.y
|
||||||
this.star1.y = y1 - 10
|
this.star1.y = y1 - 10
|
||||||
Laya.Tween.to(this.star1, { y: y1 }, 300, Laya.Ease.elasticOut, null, 400)
|
Laya.Tween.to(this.star1, { y: y1 }, 300, Laya.Ease.elasticOut, null, 400)
|
||||||
|
|
||||||
this.star2.scaleX = 1.2
|
|
||||||
this.star2.scaleY = 1.2
|
|
||||||
Laya.Tween.to(this.star2, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 600)
|
Laya.Tween.to(this.star2, { scaleX: 1, scaleY: 1 }, 300, Laya.Ease.elasticOut, null, 600)
|
||||||
const y2 = this.star2.y
|
const y2 = this.star2.y
|
||||||
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)
|
||||||
|
|
||||||
this.star4.scaleX = 1.2
|
|
||||||
this.star4.scaleY = 1.2
|
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user