You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/Game.js
+12-29Lines changed: 12 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -66,13 +66,12 @@
66
66
* @param {number} [renderer=Phaser.AUTO] - Which renderer to use: Phaser.AUTO will auto-detect, Phaser.WEBGL, Phaser.WEBGL_MULTI, Phaser.CANVAS or Phaser.HEADLESS (no rendering at all).
67
67
* @param {string|HTMLElement} [parent=''] - The DOM element into which this games canvas will be injected. Either a DOM ID (string) or the element itself.
68
68
* @param {object} [state=null] - The default state object. A object consisting of Phaser.State functions (preload, create, update, render) or null.
69
-
* @param {boolean} [transparent=false] - Use a transparent canvas background or not.
70
-
* @param {boolean} [antialias=true] - Draw all image textures anti-aliased or not. The default is for smooth textures, but disable if your game features pixel art.
71
-
* @param {object} [physicsConfig=null] - A physics configuration object to pass to the Physics world on creation.
69
+
* @param {boolean} [pixelArt=false] - Draw all image textures anti-aliased or not. The default is for smooth textures (false), but set to `true` if your game features all pixel art.
@@ -86,7 +85,7 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
86
85
/**
87
86
* @property {object} physicsConfig - The Phaser.Physics.World configuration object.
88
87
*/
89
-
this.physicsConfig=physicsConfig;
88
+
this.physicsConfig=null;
90
89
91
90
/**
92
91
* @property {string|HTMLElement} parent - The Games DOM parent.
@@ -137,12 +136,6 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
137
136
*/
138
137
this._height=600;
139
138
140
-
/**
141
-
* @property {boolean} transparent - Use a transparent canvas background or not.
142
-
* @default
143
-
*/
144
-
this.transparent=false;
145
-
146
139
/**
147
140
* @property {boolean} antialias - Anti-alias graphics. By default scaled images are smoothed in Canvas and WebGL, set anti-alias to false to disable this globally.
148
141
* @default
@@ -155,7 +148,7 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
155
148
* Configuration object with the property `multiTexture` set to true. It has to be enabled before
156
149
* Pixi boots, and cannot be changed after the game is running. Once enabled, take advantage of it
157
150
* via the `game.renderer.setTexturePriority` method.
158
-
*
151
+
*
159
152
* @property {boolean} multiTexture
160
153
* @default
161
154
* @readOnly
@@ -485,14 +478,9 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
0 commit comments