From f98a271ca09de88210aaef353ac9d9bd6a644c81 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 30 Apr 2023 11:38:46 -0400 Subject: [PATCH] Battle background updates --- public/images/arenas/default_bg.png | Bin 0 -> 624 bytes public/images/arenas/plains_a.png | Bin 495 -> 1273 bytes public/images/arenas/plains_b.png | Bin 801 -> 2335 bytes public/images/arenas/plains_bg.png | Bin 624 -> 679 bytes public/images/arenas/swamp_bg.png | Bin 734 -> 644 bytes src/battle-phases.ts | 7 ++++--- src/battle-scene.ts | 2 +- 7 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 public/images/arenas/default_bg.png diff --git a/public/images/arenas/default_bg.png b/public/images/arenas/default_bg.png new file mode 100644 index 0000000000000000000000000000000000000000..3c1ae88d03218043037d754f15a74886489e4526 GIT binary patch literal 624 zcmeAS@N?(olHy`uVBq!ia0y~yU~~YoTR7N&Bt&0 zhXq+R`tA%N2@H%J0SU}3n~uGow~k@O0R|?41p$rse?Q}LFlJa^xtnPL6ElZHgA=Qr z+5JSuiwtwRj~{5@;!$8=6cVk7<_l+-#hAg&0yaiq1eCIR2ypn35PgUHx3vIVCg!0EUdDQ~&?~ literal 0 HcmV?d00001 diff --git a/public/images/arenas/plains_a.png b/public/images/arenas/plains_a.png index eccb820f002e244f109b98eb54249428da38d06b..ada3c63ccd853e72747d5ff096d37bed95378cf4 100644 GIT binary patch delta 1116 zcmV-i1f%=!1NjM%BYyw^b5ch_0Itp)=>Px#1ZP1_K>z@;j|==^1poj9iAh93RCr$P z+P{k&Wf%wWQMfze`706prIjkRJSCoagr4VP~|Q3Xx%re`*gjElcRF z_uo8hW{-UO!Dl`*SP&1>k|{&)g;#c(xruMTyeR}>K|DxHB*L#N^xA|VEQW{Zl+5bR zjtRf7zqrxNRn@hRKKI$dF?ona$^aXxy!zI;`tBQtFTHlTS(?a7t}pz`zzcn$H|E@i z9Cv$IRSz~TGu-|A-+D|gf5W0nt`mXR{HZtmLhdiNEA8*^*Wnj|S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781a904dd4f17f4c5aae7f8 100644 GIT binary patch literal 679 zcmeAS@N?(olHy`uVBq!ia0y~yU~~YoTR7N&5jgR z3=A9lx&I`xGB7Zid%8G=RK&f#yU~+5k)iG3@1y5D@0`$?pfp!_N4M}2-jv=3;Tsw1 zVoi#Q1;R@>V(vX}6sUgq^zpylr+@shoTt{Xp#7(`f;&T_4kODZ7J(B&4hr6AoHZXm zetjNjp>UFkWz!xW#uJ<1@wy%=QP`c0;vsF@^Yfp6veHpF z4e|sZH_Q_1w26hU4Fn}8Y@me$+a?rUA(ve ztZFA42RK-=f!+sdf^mVNgc1^YEo@+2y%+GAjiQA}4ltDTKeb<+|L^!8@$V15Uwr?$ zxVk&KVfu&8`+q;yKmE4sC6DgBt&0 zhXq+R`tA%N2@H%J0SU}3n~uGow~k@O0R|?41p$rse?Q}LFlJa^xtnPL6ElZHgA=Qr z+5JSuiwtwRj~{5@;!$8=6cVk7<_l+-#hAg&0yaiq1eCIR2ypn35PgUHx3vIVCg!0EUdDQ~&?~ diff --git a/public/images/arenas/swamp_bg.png b/public/images/arenas/swamp_bg.png index 2cf27141483cd2f1c8e3eaf046019f95a5b03a19..00679534cdb98301992d37efd49f6eddcfee90f6 100644 GIT binary patch literal 644 zcmeAS@N?(olHy`uVBq!ia0y~yU~~YoTR7N&5jgR z3=A9lx&I`xGB7ZSc)B=-RK&f#t0?3c$k2AN{Ou*JI3u@h+@UJ71=l)EWVyLwlFP>K z_j8ii@Bg{?bzNa~?LJ|L3y=PDPEc-en8v^q$;6SusW3qmjdRT+W`0~N^CTSyh101V z4%1lSs)7>~PBXD=Vi7nYHU0SQ@C1dEK%Pt!L!=m{DY(rC$t0KW+RZQEv5BEkhmmDd zOecRzB+wPk0xr_7ELqt=j>*>fp3M!{19SvJ5f;wr(g?8Ack*$cfLa4} z=~Dp~u*i9!1>7)G)@-!Rw_#=hds@?ALMkJ!(3uwgumPm)la>rv)jXg|p!c6jDj;*w z!*rUw6Ej#@`vv3x#Tf_qLk}h1lI_<0F|?YH!pIbO`3p0Hx%c8VE*7(a>4h&f!ZXd+ amq822<^W<4xD-4YM0vXUxvX5jgR z3=A9lx&I`xGB7aZdAc};RK&f#YpBPP$k6ui@78q>nDSIEb~Fj^XgDW2MN4q&Eygb{ z>K8LjlrAgW=-_MJ`q9omS$XESv*!QL81bE7H$R=hQTy|J21_Q6l-};y?%NMIOk(9o zspMcviEMC~#=sN_l;BjDpbF>wRO6VC%E%PCj}xv$u8AR1Oku)PMTpEfhDIH3ffGe+ z94R|l**4u_V#Y88V&b(OyJqj<;8g(``BY5eL=iU+*j8f)h0{zdo9xapbulpFA zz54ZM|MxNPf6Xu0``Z5Z>esqJ6~PG#*>mFWaw|-D0@V8{{$azKjiq}u8yqG@Cn%iO zH2}LZ`Eka5CYDJ$4hr5tS240|Vi7nYgp(t+TmAMw2`2C4s#(wGKlmQmpwoK&L#KTA zv-63JARmH4pTV=zD|& zMqp~mKmwDC9ogql)1LAOoY;iL*?Tzt@?O4d@}K38y4VBpBmDpL^_?(nG3E0svtea} z`5l{*r>+@b*Y9EHK#lIFrV?NYU}$}kQvf+JaPv*>S$j`qxE87C15+YjYJ_K+uP=iZ Xkj(+aAaE&oGKlhY^>bP0l+XkKM*{M? diff --git a/src/battle-phases.ts b/src/battle-phases.ts index 323b0f81b..ea1e8145b 100644 --- a/src/battle-phases.ts +++ b/src/battle-phases.ts @@ -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(); } - }) + }); } }); } diff --git a/src/battle-scene.ts b/src/battle-scene.ts index 0c497a2d2..90799e944 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -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);