Battle background updates
After Width: | Height: | Size: 624 B |
Before Width: | Height: | Size: 495 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 801 B After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 624 B After Width: | Height: | Size: 679 B |
Before Width: | Height: | Size: 734 B After Width: | Height: | Size: 644 B |
|
@ -314,14 +314,15 @@ export class SwitchBiomePhase extends BattlePhase {
|
|||
this.scene.time.delayedCall(1000, () => this.scene.arena.playBgm());
|
||||
|
||||
this.scene.tweens.add({
|
||||
targets: [ this.scene.arenaBgTransition, this.scene.arenaPlayerTransition ],
|
||||
targets: [ this.scene.arenaPlayer, this.scene.arenaBgTransition, this.scene.arenaPlayerTransition ],
|
||||
duration: 1000,
|
||||
delay: 1000,
|
||||
ease: 'Sine.easeInOut',
|
||||
alpha: 1,
|
||||
alpha: (target: any) => target === this.scene.arenaPlayer ? 0 : 1,
|
||||
onComplete: () => {
|
||||
this.scene.arenaBg.setTexture(bgTexture);
|
||||
this.scene.arenaPlayer.setTexture(playerTexture);
|
||||
this.scene.arenaPlayer.setAlpha(1);
|
||||
this.scene.arenaEnemy.setTexture(enemyTexture);
|
||||
this.scene.arenaNextEnemy.setTexture(enemyTexture);
|
||||
this.scene.arenaBgTransition.setVisible(false);
|
||||
|
@ -329,7 +330,7 @@ export class SwitchBiomePhase extends BattlePhase {
|
|||
|
||||
this.end();
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -480,7 +480,7 @@ export default class BattleScene extends Phaser.Scene {
|
|||
|
||||
this.arenaBgTransition.setPosition(0, 0);
|
||||
this.arenaPlayer.setPosition(300, 0);
|
||||
this.arenaPlayerTransition.setPosition(40, 0);
|
||||
this.arenaPlayerTransition.setPosition(0, 0);
|
||||
this.arenaEnemy.setPosition(-280, 0);
|
||||
this.arenaNextEnemy.setPosition(-280, 0);
|
||||
|
||||
|
|