feat(SCOPONE-0010): improve capture pacing and settings
This commit is contained in:
@@ -3,6 +3,12 @@ import { BootScene } from './scenes/BootScene';
|
||||
import { MenuScene } from './scenes/MenuScene';
|
||||
import { GameScene } from './scenes/GameScene';
|
||||
|
||||
class SettingsScene extends Phaser.Scene {
|
||||
constructor() {
|
||||
super({ key: 'SettingsScene' });
|
||||
}
|
||||
}
|
||||
|
||||
const installFullscreenRequest = (host: HTMLElement): void => {
|
||||
const canRequestFullscreen =
|
||||
typeof document.fullscreenEnabled === 'boolean'
|
||||
@@ -48,7 +54,7 @@ const config: Phaser.Types.Core.GameConfig = {
|
||||
height: 720,
|
||||
backgroundColor: '#1a5c2a',
|
||||
parent: 'game',
|
||||
scene: [BootScene, MenuScene, GameScene],
|
||||
scene: [BootScene, MenuScene, GameScene, SettingsScene],
|
||||
scale: {
|
||||
mode: Phaser.Scale.FIT,
|
||||
autoCenter: Phaser.Scale.CENTER_BOTH,
|
||||
|
||||
Reference in New Issue
Block a user