File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11# Haydn's Phaser Starter
22
3- TODO:
4- * check you cant open dialogs during cutscenes.
5-
63This is the boilerplate I use to create video games with [ Phaser] ( https://phaser.io/ ) .
74
85## Requirements
Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ export class DialogBox extends Phaser.GameObjects.Container {
155155
156156 this . arrow . setAlpha ( 0 ) ;
157157 this . setVisible ( true ) ;
158+ this . sprite . setVisible ( true ) ;
158159
159160 if ( this . sprite . anims . animationManager . exists ( this . dialog [ this . currentDialog ] . image ) ) {
160161 this . sprite . anims . play ( this . dialog [ this . currentDialog ] . image ) ;
@@ -256,6 +257,7 @@ export class DialogBox extends Phaser.GameObjects.Container {
256257 onComplete : ( ) => {
257258 this . states . change ( 'idle' ) ;
258259 this . setVisible ( false ) ;
260+ this . sprite . setVisible ( false ) ;
259261 } ,
260262 } ) ;
261263
Original file line number Diff line number Diff line change @@ -27,10 +27,9 @@ import { SummerTitle } from 'scenes/summer_title';
2727import { WinterFlower } from 'scenes/winter_flower' ;
2828import { WinterIceCube } from 'scenes/winter_ice_cube' ;
2929import { WinterTitle } from 'scenes/winter_title' ;
30- import { setDebug } from 'systems/flags' ;
3130
3231// @ts -expect-error Injected environment variable.
33- setDebug ( true ) ; // process.env.PHASER_DEBUG === 'true');
32+ // setDebug(true); // process.env.PHASER_DEBUG === 'true');
3433
3534// @ts -expect-error Injected environment variable.
3635if ( process . env . PHASER_SENTRY_DSN ) {
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ export class Finish extends Phaser.Scene {
2727 this . typewriter = this . add
2828 . existing ( new Typewriter ( this ) )
2929 . setDepth ( Depth . UI )
30- . setScrollFactor ( 1 )
30+ . setScrollFactor ( 0 )
3131 . setPostPipeline ( Shader . Fade ) ;
3232
3333 this . typewriter2 = this . add
3434 . existing ( new Typewriter ( this ) )
3535 . setDepth ( Depth . UI )
36- . setScrollFactor ( 1 )
36+ . setScrollFactor ( 0 )
3737 . setPostPipeline ( Shader . Fade ) ;
3838
3939 sequence ( this )
You can’t perform that action at this time.
0 commit comments