Phaser.Game constructor can now be passed a single object containing game settings + Stage settings, useful for advanced configurations.

This commit is contained in:
photonstorm
2013-12-24 03:18:55 +00:00
parent 0acef49a7c
commit 167a498a5e
7 changed files with 254 additions and 68 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ Phaser.StateManager = function (game, pendingState) {
*/
this._pendingState = null;
if (pendingState !== null)
if (typeof pendingState !== 'undefined' && pendingState !== null)
{
this._pendingState = pendingState;
}