Battle background updates

This commit is contained in:
Flashfyre 2023-04-30 11:38:46 -04:00
parent c6d9816318
commit f98a271ca0
7 changed files with 5 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 495 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 801 B

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 624 B

After

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 734 B

After

Width:  |  Height:  |  Size: 644 B

View File

@ -314,14 +314,15 @@ export class SwitchBiomePhase extends BattlePhase {
this.scene.time.delayedCall(1000, () => this.scene.arena.playBgm()); this.scene.time.delayedCall(1000, () => this.scene.arena.playBgm());
this.scene.tweens.add({ this.scene.tweens.add({
targets: [ this.scene.arenaBgTransition, this.scene.arenaPlayerTransition ], targets: [ this.scene.arenaPlayer, this.scene.arenaBgTransition, this.scene.arenaPlayerTransition ],
duration: 1000, duration: 1000,
delay: 1000, delay: 1000,
ease: 'Sine.easeInOut', ease: 'Sine.easeInOut',
alpha: 1, alpha: (target: any) => target === this.scene.arenaPlayer ? 0 : 1,
onComplete: () => { onComplete: () => {
this.scene.arenaBg.setTexture(bgTexture); this.scene.arenaBg.setTexture(bgTexture);
this.scene.arenaPlayer.setTexture(playerTexture); this.scene.arenaPlayer.setTexture(playerTexture);
this.scene.arenaPlayer.setAlpha(1);
this.scene.arenaEnemy.setTexture(enemyTexture); this.scene.arenaEnemy.setTexture(enemyTexture);
this.scene.arenaNextEnemy.setTexture(enemyTexture); this.scene.arenaNextEnemy.setTexture(enemyTexture);
this.scene.arenaBgTransition.setVisible(false); this.scene.arenaBgTransition.setVisible(false);
@ -329,7 +330,7 @@ export class SwitchBiomePhase extends BattlePhase {
this.end(); this.end();
} }
}) });
} }
}); });
} }

View File

@ -480,7 +480,7 @@ export default class BattleScene extends Phaser.Scene {
this.arenaBgTransition.setPosition(0, 0); this.arenaBgTransition.setPosition(0, 0);
this.arenaPlayer.setPosition(300, 0); this.arenaPlayer.setPosition(300, 0);
this.arenaPlayerTransition.setPosition(40, 0); this.arenaPlayerTransition.setPosition(0, 0);
this.arenaEnemy.setPosition(-280, 0); this.arenaEnemy.setPosition(-280, 0);
this.arenaNextEnemy.setPosition(-280, 0); this.arenaNextEnemy.setPosition(-280, 0);