@@ -169,11 +169,11 @@ export default class MainGame extends Phaser.Scene{
169169 const fishName = fish . fishName || 'a Fish?' ;
170170
171171 // Create popup text near top center
172- const popup = this . add . text ( this . player . x , 100 , `Caught ${ fishName } !` , {
172+ const popup = this . add . text ( this . player . x , 100 , `Caught a ${ fishName } !` , {
173173 fontSize : '20px' ,
174174 fontFamily : 'Arial' ,
175175 color : '#ffffffff' ,
176- backgroundColor : '#72bc9cff ' ,
176+ backgroundColor : '#16517bff ' ,
177177 padding : { x : 10 , y : 5 } ,
178178 } ) . setOrigin ( 0.5 ) ;
179179
@@ -182,26 +182,27 @@ export default class MainGame extends Phaser.Scene{
182182 targets : popup ,
183183 y : 60 ,
184184 alpha : 0 ,
185- duration : 1500 ,
186- ease : 'Power2 ' ,
185+ duration : 8000 ,
186+ ease : 'Power3 ' ,
187187 onComplete : ( ) => popup . destroy ( ) ,
188188 } ) ;
189189}
190190
191- function resumeGame ( ) {
192- // Clean up collider if still active
193- if ( this . hookCollider ) {
194- this . physics . world . removeCollider ( this . hookCollider ) ;
195- this . hookCollider = null ;
196- }
197- if ( this . hook ) {
198- this . hook . destroy ( ) ;
199- this . hook = null ;
191+ function resumeGame ( ) {
192+ // Clean up collider if still active
193+ if ( this . hookCollider ) {
194+ this . physics . world . removeCollider ( this . hookCollider ) ;
195+ this . hookCollider = null ;
196+ }
197+ // Destroy hook
198+ if ( this . hook ) {
199+ this . hook . destroy ( ) ;
200+ this . hook = null ;
201+ }
202+ // Reset variables
203+ this . moveFreely = true ;
204+ this . canCast = true ;
200205 }
201- // Reset variables
202- this . moveFreely = true ;
203- this . canCast = true ;
204- }
205206//--------------------------------------------------------------------------------------
206207 }
207208
0 commit comments