I setup my game this way:
const config : Phaser.Types.Core.GameConfig = {
type: Phaser.AUTO,
width: 500,
height: 700,
physics: {
default: 'arcade',
arcade: {
gravity: { y: 200 },
debug: true,
},
},
scene: [GameScene, SettingsScene],
scale: {
mode: Phaser.Scale.FIT,
},
};
new Phaser.Game( config );
In my SettingsScene I want an option where I can turn the game.scale.mode to Phaser.Scale.None but I can’t figure out a way to do this from within the SettingsScene class.
Is this possible?