Commit 0e661a45 authored by huangwenjie's avatar huangwenjie

更新动效

parent 421effc1
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"name": "gameOverPanel" "name": "gameOverPanel"
}, },
{ {
"keys": "bomb(1).png,bomb(10).png,bomb(11).png,bomb(12).png,bomb(13).png,bomb(14).png,bomb(15).png,bomb(16).png,bomb(17).png,bomb(18).png,bomb(19).png,bomb(2).png,bomb(20).png,bomb(3).png,bomb(4).png,bomb(5).png,bomb(6).png,bomb(7).png,bomb(8).png,bomb(9).png,bomb.mp3,bombBtn.png,bombTips.png,create1024.svga,create128.svga,create16.svga,create2048.svga,create256.svga,create32.svga,create4.svga,create512.svga,create64.svga,create8.svga,createEle.mp3,createEles.mp3,doFilterBtn.png,ele1024.png,ele128.png,ele16.png,ele2.png,ele2048.png,ele256.png,ele32.png,ele4.png,ele512.png,ele64.png,ele8.png,exchange.mp3,exchangeBtn.png,exchangeTips.png,filterBtn.png,filterTips.png,filting (1).png,filting (10).png,filting (11).png,filting (12).png,filting (13).png,filting (14).png,filting (15).png,filting (16).png,filting (17).png,filting (2).png,filting (3).png,filting (4).png,filting (5).png,filting (6).png,filting (7).png,filting (8).png,filting (9).png,focusTips.png,gameOver.mp3,goBackBtn.png,guideArrow.png,guideFinger.png,move.mp3,musicOff.png,musicOn.png,playBg.png,propBottom.png", "keys": "bomb(1).png,bomb(10).png,bomb(11).png,bomb(12).png,bomb(13).png,bomb(14).png,bomb(15).png,bomb(16).png,bomb(17).png,bomb(18).png,bomb(19).png,bomb(2).png,bomb(20).png,bomb(3).png,bomb(4).png,bomb(5).png,bomb(6).png,bomb(7).png,bomb(8).png,bomb(9).png,bomb.mp3,bombBtn.png,bombTips.png,close.png,create1024.svga,create128.svga,create16.svga,create2048.svga,create256.svga,create32.svga,create4.svga,create512.svga,create64.svga,create8.svga,createEle.mp3,createEles.mp3,doFilterBtn.png,ele1024.png,ele128.png,ele16.png,ele2.png,ele2048.png,ele256.png,ele32.png,ele4.png,ele512.png,ele64.png,ele8.png,exchange.mp3,exchangeBtn.png,exchangeTips.png,filterBtn.png,filterTips.png,filting (1).png,filting (10).png,filting (11).png,filting (12).png,filting (13).png,filting (14).png,filting (15).png,filting (16).png,filting (17).png,filting (2).png,filting (3).png,filting (4).png,filting (5).png,filting (6).png,filting (7).png,filting (8).png,filting (9).png,focusTips.png,gameOver.mp3,goBackBtn.png,guideArrow.png,guideFinger.png,move.mp3,musicOff.png,musicOn.png,playBg.png,propBottom.png",
"name": "playScene" "name": "playScene"
}, },
{ {
......
...@@ -390,6 +390,10 @@ export class PlayScene extends Scene { ...@@ -390,6 +390,10 @@ export class PlayScene extends Scene {
this.exchangeMask.endFill(); this.exchangeMask.endFill();
this.addChild(this.exchangeMask) this.addChild(this.exchangeMask)
let close = new Sprite(RES.getRes("close.png"))
close.x = 600
close.y = 500
this.exchangeMask.addChild(close)
let tips = new Sprite(RES.getRes("exchangeTips.png")) let tips = new Sprite(RES.getRes("exchangeTips.png"))
tips.x = 140 tips.x = 140
...@@ -559,6 +563,10 @@ export class PlayScene extends Scene { ...@@ -559,6 +563,10 @@ export class PlayScene extends Scene {
this.bombMask.endFill(); this.bombMask.endFill();
this.addChild(this.bombMask) this.addChild(this.bombMask)
let close = new Sprite(RES.getRes("close.png"))
close.x = 600
close.y = 500
this.bombMask.addChild(close)
let tips = new Sprite(RES.getRes("bombTips.png")) let tips = new Sprite(RES.getRes("bombTips.png"))
tips.x = 280 tips.x = 280
...@@ -608,7 +616,7 @@ export class PlayScene extends Scene { ...@@ -608,7 +616,7 @@ export class PlayScene extends Scene {
let showImage = new FrameAni(arr); let showImage = new FrameAni(arr);
showImage.x = this.containerPool[x][y].x + 60 showImage.x = this.containerPool[x][y].x + 60
showImage.y = this.containerPool[x][y].y + 60 showImage.y = this.containerPool[x][y].y + 60
showImage.scale.set(0.5, 0.5) showImage.scale.set(0.8, 0.8)
this.addChild(showImage); this.addChild(showImage);
showImage.play() showImage.play()
...@@ -656,6 +664,10 @@ export class PlayScene extends Scene { ...@@ -656,6 +664,10 @@ export class PlayScene extends Scene {
this.filterMask.endFill(); this.filterMask.endFill();
this.addChild(this.filterMask) this.addChild(this.filterMask)
let close = new Sprite(RES.getRes("close.png"))
close.x = 600
close.y = 500
this.filterMask.addChild(close)
let tips = new Sprite(RES.getRes("filterTips.png")) let tips = new Sprite(RES.getRes("filterTips.png"))
tips.x = 360 tips.x = 360
...@@ -1375,7 +1387,7 @@ export class PlayScene extends Scene { ...@@ -1375,7 +1387,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy let targety = this.containerPool[x][y].y + oy
Tween.get(origin) Tween.get(origin)
.to({ x: targetx, y: targety }, 200) .to({ x: targetx, y: targety }, 150)
.call(() => { .call(() => {
this.removeChild(origin) this.removeChild(origin)
}) })
...@@ -1393,7 +1405,7 @@ export class PlayScene extends Scene { ...@@ -1393,7 +1405,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy let targety = this.containerPool[x][y].y + oy
Tween.get(origin) Tween.get(origin)
.to({ x: targetx, y: targety }, 200) .to({ x: targetx, y: targety }, 150)
.call(() => { .call(() => {
this.removeChild(origin) this.removeChild(origin)
}) })
...@@ -1422,7 +1434,7 @@ export class PlayScene extends Scene { ...@@ -1422,7 +1434,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy let targety = this.containerPool[x][y].y + oy
Tween.get(origin) Tween.get(origin)
.to({ x: targetx, y: targety }, 200) .to({ x: targetx, y: targety }, 150)
.call(() => { .call(() => {
this.removeChild(origin) this.removeChild(origin)
}) })
...@@ -1440,7 +1452,7 @@ export class PlayScene extends Scene { ...@@ -1440,7 +1452,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy let targety = this.containerPool[x][y].y + oy
Tween.get(origin) Tween.get(origin)
.to({ x: targetx, y: targety }, 200) .to({ x: targetx, y: targety }, 150)
.call(() => { .call(() => {
this.removeChild(origin) this.removeChild(origin)
}) })
...@@ -1469,7 +1481,7 @@ export class PlayScene extends Scene { ...@@ -1469,7 +1481,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy let targety = this.containerPool[x][y].y + oy
Tween.get(origin) Tween.get(origin)
.to({ x: targetx, y: targety }, 200) .to({ x: targetx, y: targety }, 150)
.call(() => { .call(() => {
this.removeChild(origin) this.removeChild(origin)
}) })
...@@ -1487,7 +1499,7 @@ export class PlayScene extends Scene { ...@@ -1487,7 +1499,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy let targety = this.containerPool[x][y].y + oy
Tween.get(origin) Tween.get(origin)
.to({ x: targetx, y: targety }, 200) .to({ x: targetx, y: targety }, 150)
.call(() => { .call(() => {
this.removeChild(origin) this.removeChild(origin)
}) })
...@@ -1516,7 +1528,7 @@ export class PlayScene extends Scene { ...@@ -1516,7 +1528,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy let targety = this.containerPool[x][y].y + oy
Tween.get(origin) Tween.get(origin)
.to({ x: targetx, y: targety }, 200) .to({ x: targetx, y: targety }, 150)
.call(() => { .call(() => {
this.removeChild(origin) this.removeChild(origin)
}) })
...@@ -1534,7 +1546,7 @@ export class PlayScene extends Scene { ...@@ -1534,7 +1546,7 @@ export class PlayScene extends Scene {
let targetx = this.containerPool[x][y].x + ox let targetx = this.containerPool[x][y].x + ox
let targety = this.containerPool[x][y].y + oy let targety = this.containerPool[x][y].y + oy
Tween.get(origin) Tween.get(origin)
.to({ x: targetx, y: targety }, 200) .to({ x: targetx, y: targety }, 150)
.call(() => { .call(() => {
this.removeChild(origin) this.removeChild(origin)
}) })
...@@ -1550,7 +1562,7 @@ export class PlayScene extends Scene { ...@@ -1550,7 +1562,7 @@ export class PlayScene extends Scene {
} }
setTimeout(() => { setTimeout(() => {
r() r()
}, 200); }, 120);
}) })
} }
......
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