冲突动画细节

This commit is contained in:
2025-06-06 14:42:20 +08:00
parent f3a701302e
commit 27f5716dcc

View File

@@ -74,10 +74,10 @@ export class Block extends Laya.Script {
this.sprite_show.graphics.drawRect(0, 0, this.blockSize, this.blockSize, color)
if (animated) {
this.sprite_show.alpha = 0
Laya.Tween.to(this.sprite_show, { alpha }, 200, Laya.Ease.linearIn, Laya.Handler.create(this, () => {
Laya.Tween.to(this.sprite_show, { alpha: 0 }, 300, Laya.Ease.linearIn, Laya.Handler.create(this, () => {
Laya.Tween.to(this.sprite_show, { alpha }, 200, Laya.Ease.linearIn, Laya.Handler.create(this, () => {
Laya.Tween.to(this.sprite_show, { alpha }, 200, Laya.Ease.linearIn, Laya.Handler.create(this, () => {
Laya.Tween.to(this.sprite_show, { alpha }, 100, Laya.Ease.linearIn, Laya.Handler.create(this, () => {
Laya.Tween.to(this.sprite_show, { alpha: 0 }, 150, Laya.Ease.linearIn, Laya.Handler.create(this, () => {
Laya.Tween.to(this.sprite_show, { alpha }, 100, Laya.Ease.linearIn, Laya.Handler.create(this, () => {
Laya.Tween.to(this.sprite_show, { alpha: 0 }, 150, Laya.Ease.linearIn, Laya.Handler.create(this, () => {
this.sprite_show.graphics.clear()
this.sprite_show.graphics.drawRect(0, 0, this.blockSize, this.blockSize, completedColor)
this.sprite_show.alpha = completedAlpha