Game States
Use the debug menu to push and pop game states.
const config = {
states: { game: GameState, game2: DupeState },
defaultState: 'game',
};
engine.gameState.push('game2');
engine.gameState.pop();
Use the debug menu to push and pop game states.
const config = {
states: { game: GameState, game2: DupeState },
defaultState: 'game',
};
engine.gameState.push('game2');
engine.gameState.pop();