mirror of
https://github.com/wassname/phaser.git
synced 2026-07-17 11:31:30 +08:00
Introduced a separate stage.fullScreenScaleMode property that is used to decide scaling when fullscreen.
This commit is contained in:
@@ -13,6 +13,13 @@ function create() {
|
||||
|
||||
game.stage.backgroundColor = '#e3ed49';
|
||||
|
||||
// Stretch to fill
|
||||
// game.stage.fullScreenScaleMode = Phaser.StageScaleMode.EXACT_FIT;
|
||||
// Keep original size
|
||||
// game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE;
|
||||
// Maintain aspect ratio
|
||||
game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE;
|
||||
|
||||
game.input.onDown.add(gofull, this);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user