Commit 314838c8 authored by huangwenjie's avatar huangwenjie

优化动效

parent 37955550
......@@ -1335,8 +1335,8 @@ export class PlayScene extends Scene {
Tween.get(clone)
.set({ scaleX: 1, scaleY: 1, anchorX: 75, anchorY: 75 })
.to({ scaleX: 0.3, scaleY: 0.3 }, 100)
.to({ scaleX: 1.3, scaleY: 1.3 }, 300)
.to({ scaleX: 1, scaleY: 1 }, 150)
.to({ scaleX: 1.3, scaleY: 1.3 }, 150)
.to({ scaleX: 1, scaleY: 1 }, 100)
arr[i - 1] *= 2
arr.splice(i, 1)
......@@ -1358,7 +1358,7 @@ export class PlayScene extends Scene {
setTimeout(() => {
this.removeChild(mp)
}, 1000);
}, 800);
}
})
......@@ -1387,7 +1387,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy
Tween.get(origin)
.to({ x: targetx, y: targety }, 150)
.to({ x: targetx, y: targety }, 90)
.call(() => {
this.removeChild(origin)
})
......@@ -1405,7 +1405,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy
Tween.get(origin)
.to({ x: targetx, y: targety }, 150)
.to({ x: targetx, y: targety }, 90)
.call(() => {
this.removeChild(origin)
})
......@@ -1434,7 +1434,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy
Tween.get(origin)
.to({ x: targetx, y: targety }, 150)
.to({ x: targetx, y: targety }, 90)
.call(() => {
this.removeChild(origin)
})
......@@ -1452,7 +1452,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy
Tween.get(origin)
.to({ x: targetx, y: targety }, 150)
.to({ x: targetx, y: targety }, 90)
.call(() => {
this.removeChild(origin)
})
......@@ -1481,7 +1481,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy
Tween.get(origin)
.to({ x: targetx, y: targety }, 150)
.to({ x: targetx, y: targety }, 90)
.call(() => {
this.removeChild(origin)
})
......@@ -1499,7 +1499,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy
Tween.get(origin)
.to({ x: targetx, y: targety }, 150)
.to({ x: targetx, y: targety }, 90)
.call(() => {
this.removeChild(origin)
})
......@@ -1528,7 +1528,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy
Tween.get(origin)
.to({ x: targetx, y: targety }, 150)
.to({ x: targetx, y: targety }, 90)
.call(() => {
this.removeChild(origin)
})
......@@ -1546,7 +1546,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy
Tween.get(origin)
.to({ x: targetx, y: targety }, 150)
.to({ x: targetx, y: targety }, 90)
.call(() => {
this.removeChild(origin)
})
......@@ -1562,7 +1562,7 @@ export class PlayScene extends Scene {
}
setTimeout(() => {
r()
}, 120);
}, 60);
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment