I saw a lot of api and try a lot of way to make my phaser can using full screen by tap some imgae.
My phaser version is v3.24.1.
I can using
this.scale.startFullscreen(); // Phaser.Scale.ScaleManager
It will success for chrome/safari desktop version but not using by phone.
I try a lot of way to make my phaser game can have a fullscreen function.
This my setting:
const config: GameConfig = {
type: Phaser.CANVAS,
width: 1920,
height: 1080,
parent: 'game',
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH
},
scene: [],
plugins: {
scene: [
{ key: 'SpinePlugin', plugin: window.SpinePlugin, mapping: 'spine' }
]
}
};
I don't want change my screen ratio,just want the screen full on the mobile.
How can I do. please help me.