mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Remove jarring flash when evolution begins
This commit is contained in:
parent
ea0b240f32
commit
ea622a091c
@ -94,7 +94,7 @@ export class EvolutionPhase extends Phase {
|
|||||||
.rectangle(0, 0, globalScene.game.canvas.width / 6, globalScene.game.canvas.height / 6, 0x262626)
|
.rectangle(0, 0, globalScene.game.canvas.width / 6, globalScene.game.canvas.height / 6, 0x262626)
|
||||||
.setOrigin(0)
|
.setOrigin(0)
|
||||||
.setAlpha(0);
|
.setAlpha(0);
|
||||||
this.evolutionContainer.add([this.evolutionBaseBg, this.evolutionBg, this.evolutionBgOverlay]);
|
this.evolutionContainer.add([this.evolutionBaseBg, this.evolutionBgOverlay, this.evolutionBg]);
|
||||||
|
|
||||||
this.evolutionOverlay = globalScene.add.rectangle(
|
this.evolutionOverlay = globalScene.add.rectangle(
|
||||||
0,
|
0,
|
||||||
@ -224,11 +224,6 @@ export class EvolutionPhase extends Phase {
|
|||||||
ease: "Sine.easeOut",
|
ease: "Sine.easeOut",
|
||||||
onComplete: () => {
|
onComplete: () => {
|
||||||
globalScene.time.delayedCall(1000, () => {
|
globalScene.time.delayedCall(1000, () => {
|
||||||
globalScene.tweens.add({
|
|
||||||
targets: this.evolutionBgOverlay,
|
|
||||||
alpha: 0,
|
|
||||||
duration: 250,
|
|
||||||
});
|
|
||||||
this.evolutionBg.setVisible(true);
|
this.evolutionBg.setVisible(true);
|
||||||
this.evolutionBg.play();
|
this.evolutionBg.play();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user