|
|
@ -385,6 +385,15 @@ export default class GameBackground { |
|
|
|
|
|
|
|
setMode (mode) { |
|
|
|
this.mode = mode; |
|
|
|
|
|
|
|
delete this.butterfly; |
|
|
|
|
|
|
|
this.tweens.foregroundIn.stop(); |
|
|
|
this.tweens.treeLeftIn.stop(); |
|
|
|
this.tweens.treeRightIn.stop(); |
|
|
|
this.tweens.plantLeftIn.stop(); |
|
|
|
this.tweens.plantRightIn.stop(); |
|
|
|
|
|
|
|
switch (this.mode) { |
|
|
|
case 'story': |
|
|
|
this.tweens.foregroundIn.delay(2000).run(); |
|
|
@ -403,8 +412,6 @@ export default class GameBackground { |
|
|
|
break; |
|
|
|
|
|
|
|
case 'play': |
|
|
|
delete this.butterfly; |
|
|
|
|
|
|
|
this.tweens.foregroundOut.run(); |
|
|
|
this.tweens.treeLeftOut.run(); |
|
|
|
this.tweens.treeRightOut.run(); |
|
|
|