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
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -5,22 +5,20 @@
5
5
*/
6
6
7
7
/**
8
-
* Game constructor
9
-
*
10
-
* Instantiate a new <code>Phaser.Game</code> object.
11
-
* @class Phaser.Game
12
-
* @classdesc This is where the magic happens. The Game object is the heart of your game,
8
+
* This is where the magic happens. The Game object is the heart of your game,
13
9
* providing quick access to common functions and handling the boot process.
14
10
* "Hell, there are no rules here - we're trying to accomplish something."
15
11
* Thomas A. Edison
12
+
*
13
+
* @class Phaser.Game
16
14
* @constructor
17
15
* @param {number|string} [width=800] - The width of your game in game pixels. If given as a string the value must be between 0 and 100 and will be used as the percentage width of the parent container, or the browser window if no parent is given.
18
16
* @param {number|string} [height=600] - The height of your game in game pixels. If given as a string the value must be between 0 and 100 and will be used as the percentage height of the parent container, or the browser window if no parent is given.
19
17
* @param {number} [renderer=Phaser.AUTO] - Which renderer to use: Phaser.AUTO will auto-detect, Phaser.WEBGL, Phaser.CANVAS or Phaser.HEADLESS (no rendering at all).
20
18
* @param {string|HTMLElement} [parent=''] - The DOM element into which this games canvas will be injected. Either a DOM ID (string) or the element itself.
21
19
* @param {object} [state=null] - The default state object. A object consisting of Phaser.State functions (preload, create, update, render) or null.
22
20
* @param {boolean} [transparent=false] - Use a transparent canvas background or not.
23
-
* @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.
21
+
* @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.
24
22
* @param {object} [physicsConfig=null] - A physics configuration object to pass to the Physics world on creation.
Copy file name to clipboardExpand all lines: src/core/Group.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,10 @@
5
5
*/
6
6
7
7
/**
8
-
* Phaser Group constructor.
8
+
* A Group is a container for display objects that allows for fast pooling and object recycling.
9
+
* Groups can be nested within other Groups and have their own local transforms.
10
+
*
9
11
* @class Phaser.Group
10
-
* @classdesc A Group is a container for display objects that allows for fast pooling and object recycling. Groups can be nested within other Groups and have their own local transforms.
11
12
* @constructor
12
13
* @param {Phaser.Game} game - A reference to the currently running game.
13
14
* @param {Phaser.Group|Phaser.Sprite|null} parent - The parent Group, DisplayObject or DisplayObjectContainer that this Group will be added to. If `undefined` it will use game.world. If null it won't be added to anything.
0 commit comments