mirror of
https://github.com/wassname/phaser.git
synced 2026-09-11 12:31:29 +08:00
Phaser.StageScaleMode has been renamed to ScaleManager and moved from the system folder to the core folder. It's still available under game.scale.
If your game references the old Phaser.StageScaleMode consts like SHOW_ALL you need to update them to Phaser.ScaleManager, i.e. Phaser.ScaleManager.SHOW_ALL. All of the Project Templates have been updated to reflect the above change.
This commit is contained in:
@@ -13,7 +13,8 @@ BasicGame.Game = function (game) {
|
||||
this.sound; // the sound manager - add a sound, play one, set-up markers, etc
|
||||
this.stage; // the game stage
|
||||
this.time; // the clock
|
||||
this.tweens; // the tween manager
|
||||
this.tweens; // the tween manager
|
||||
this.state; // the state manager
|
||||
this.world; // the game world
|
||||
this.particles; // the particle manager
|
||||
this.physics; // the physics manager
|
||||
@@ -44,7 +45,7 @@ BasicGame.Game.prototype = {
|
||||
// Stop music, delete sprites, purge caches, free resources, all that good stuff.
|
||||
|
||||
// Then let's go back to the main menu.
|
||||
this.game.state.start('MainMenu');
|
||||
this.state.start('MainMenu');
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user