mirror of
https://github.com/wassname/phaser.git
synced 2026-08-02 13:00:25 +08:00
Phaser.Game constructor can now be passed a single object containing game settings + Stage settings, useful for advanced configurations.
This commit is contained in:
@@ -40,6 +40,12 @@ Phaser.Device = function () {
|
||||
*/
|
||||
this.cocoonJS = false;
|
||||
|
||||
/**
|
||||
* @property {boolean} ejecta - Is the game running under Ejecta?
|
||||
* @default
|
||||
*/
|
||||
this.ejecta = false;
|
||||
|
||||
/**
|
||||
* @property {boolean} android - Is running on android?
|
||||
* @default
|
||||
@@ -478,6 +484,11 @@ Phaser.Device.prototype = {
|
||||
this.cocoonJS = true;
|
||||
}
|
||||
|
||||
if (typeof window.ejecta !== "undefined")
|
||||
{
|
||||
this.ejecta = true;
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user