Introduced a separate stage.fullScreenScaleMode property that is used to decide scaling when fullscreen.

This commit is contained in:
John
2013-12-05 01:00:36 +00:00
parent c5c754725a
commit b978a2b73b
3 changed files with 46 additions and 11 deletions
+7
View File
@@ -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);
}