diff --git a/src/game/scenes/TitleScene.ts b/src/game/scenes/TitleScene.ts index 2699618..e99d764 100644 --- a/src/game/scenes/TitleScene.ts +++ b/src/game/scenes/TitleScene.ts @@ -55,7 +55,7 @@ export class TitleScene extends Phaser.Scene { this.input.once('pointerdown', unlockAudio); this.input.keyboard?.once('keydown', unlockAudio); - this.input.keyboard?.once('keydown-ENTER', () => this.requestStartGame()); + this.input.keyboard?.once('keydown-ENTER', () => this.activateDefaultMenuAction()); } private shouldOpenDebugSortiePrep() { @@ -497,6 +497,15 @@ export class TitleScene extends Phaser.Scene { this.newGameConfirmPanel = undefined; } + private activateDefaultMenuAction() { + if (hasCampaignSave()) { + this.continueGame(); + return; + } + + this.startGame(); + } + private startGame() { soundDirector.start(); soundDirector.resume();