diff --git a/src/game.ts b/src/game.ts index 1d0d391..a95554e 100644 --- a/src/game.ts +++ b/src/game.ts @@ -4,12 +4,9 @@ import { StartMenu } from "./screens/start-menu"; type GameState = 'not_started' | 'playing' export class Game { - private state: GameState = 'not_started' constructor(private startMenu: StartMenu, private match: Match) {} private setState(state: GameState) { - this.state = state - if (state === 'not_started') { this.startMenu.show() this.match.hide()