Skip to content

Commit 12148b3

Browse files
author
Webeled
committed
More improvements on GameObjectFactory
1 parent ce04ade commit 12148b3

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/gameobjects/BitmapText.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
*/
66

77
/**
8-
* An Animation instance contains a single animation and the controls to play it.
9-
* It is created by the AnimationManager, consists of Animation.Frame objects and belongs to a single Game Object such as a Sprite.
10-
*
8+
* Creates a new <code>BitmapText</code>.
119
* @class Phaser.BitmapText
1210
* @constructor
1311
* @param {Phaser.Game} game - A reference to the currently running game.

src/gameobjects/GameObjectFactory.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Phaser.GameObjectFactory.prototype = {
9898
},
9999

100100
/**
101-
* Creates a new group to be added on the display list
101+
* A Group is a container for display objects that allows for fast pooling, recycling and collision checks.
102102
*
103103
* @method group
104104
* @param {*} parent - The parent Group or DisplayObjectContainer that will hold this group, if any.
@@ -112,7 +112,7 @@ Phaser.GameObjectFactory.prototype = {
112112
},
113113

114114
/**
115-
* Description.
115+
* Creates a new instance of the Sound class.
116116
*
117117
* @method audio
118118
* @param {string} key - The Game.cache key of the sound that this object will use.
@@ -127,7 +127,7 @@ Phaser.GameObjectFactory.prototype = {
127127
},
128128

129129
/**
130-
* Description.
130+
* Creates a new <code>TileSprite</code>.
131131
*
132132
* @method tileSprite
133133
* @param {number} x - X position of the new tileSprite.
@@ -145,7 +145,7 @@ Phaser.GameObjectFactory.prototype = {
145145
},
146146

147147
/**
148-
* Description.
148+
* Creates a new <code>Text</code>.
149149
*
150150
* @method text
151151
* @param {number} x - X position of the new text object.
@@ -161,7 +161,7 @@ Phaser.GameObjectFactory.prototype = {
161161
},
162162

163163
/**
164-
* Description.
164+
* Creates a new <code>Button</code> object.
165165
*
166166
* @method button
167167
* @param {number} [x] X position of the new button object.
@@ -181,7 +181,7 @@ Phaser.GameObjectFactory.prototype = {
181181
},
182182

183183
/**
184-
* Description.
184+
* Creates a new <code>Graphics</code> object.
185185
*
186186
* @method graphics
187187
* @param {number} x - X position of the new graphics object.
@@ -195,7 +195,9 @@ Phaser.GameObjectFactory.prototype = {
195195
},
196196

197197
/**
198-
* Description.
198+
* Emitter is a lightweight particle emitter. It can be used for one-time explosions or for
199+
* continuous effects like rain and fire. All it really does is launch Particle objects out
200+
* at set intervals, and fixes their positions and velocities accorindgly.
199201
*
200202
* @method emitter
201203
* @param {number} [x=0] - The x coordinate within the Emitter that the particles are emitted from.
@@ -210,7 +212,7 @@ Phaser.GameObjectFactory.prototype = {
210212
},
211213

212214
/**
213-
* Description.
215+
* * Create a new <code>BitmapText</code>.
214216
*
215217
* @method bitmapText
216218
* @param {number} x - X position of the new bitmapText object.
@@ -268,7 +270,7 @@ Phaser.GameObjectFactory.prototype = {
268270
},
269271

270272
/**
271-
* Description.
273+
* A dynamic initially blank canvas to which images can be drawn
272274
*
273275
* @method renderTexture
274276
* @param {string} key - Asset key for the render texture.

src/gameobjects/Graphics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
/**
8-
* Description.
8+
* Creates a new <code>Graphics</code> object.
99
*
1010
* @class Phaser.Graphics
1111
* @constructor

src/gameobjects/RenderTexture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
/**
8-
* Description of constructor.
8+
* A dynamic initially blank canvas to which images can be drawn
99
* @class Phaser.RenderTexture
1010
* @constructor
1111
* @param {Phaser.Game} game - Current game instance.

0 commit comments

Comments
 (0)