From 12148b315933f95350b1ef2340e0a64efe92984a Mon Sep 17 00:00:00 2001 From: Webeled Date: Fri, 25 Oct 2013 15:42:48 +0100 Subject: [PATCH] More improvements on GameObjectFactory --- src/gameobjects/BitmapText.js | 4 +--- src/gameobjects/GameObjectFactory.js | 20 +++++++++++--------- src/gameobjects/Graphics.js | 2 +- src/gameobjects/RenderTexture.js | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/gameobjects/BitmapText.js b/src/gameobjects/BitmapText.js index 4558a411..8090d8f8 100644 --- a/src/gameobjects/BitmapText.js +++ b/src/gameobjects/BitmapText.js @@ -5,9 +5,7 @@ */ /** -* An Animation instance contains a single animation and the controls to play it. -* It is created by the AnimationManager, consists of Animation.Frame objects and belongs to a single Game Object such as a Sprite. -* +* Creates a new BitmapText. * @class Phaser.BitmapText * @constructor * @param {Phaser.Game} game - A reference to the currently running game. diff --git a/src/gameobjects/GameObjectFactory.js b/src/gameobjects/GameObjectFactory.js index e86c3b1d..ebd37ed5 100644 --- a/src/gameobjects/GameObjectFactory.js +++ b/src/gameobjects/GameObjectFactory.js @@ -98,7 +98,7 @@ Phaser.GameObjectFactory.prototype = { }, /** - * Creates a new group to be added on the display list + * A Group is a container for display objects that allows for fast pooling, recycling and collision checks. * * @method group * @param {*} parent - The parent Group or DisplayObjectContainer that will hold this group, if any. @@ -112,7 +112,7 @@ Phaser.GameObjectFactory.prototype = { }, /** - * Description. + * Creates a new instance of the Sound class. * * @method audio * @param {string} key - The Game.cache key of the sound that this object will use. @@ -127,7 +127,7 @@ Phaser.GameObjectFactory.prototype = { }, /** - * Description. + * Creates a new TileSprite. * * @method tileSprite * @param {number} x - X position of the new tileSprite. @@ -145,7 +145,7 @@ Phaser.GameObjectFactory.prototype = { }, /** - * Description. + * Creates a new Text. * * @method text * @param {number} x - X position of the new text object. @@ -161,7 +161,7 @@ Phaser.GameObjectFactory.prototype = { }, /** - * Description. + * Creates a new Button object. * * @method button * @param {number} [x] X position of the new button object. @@ -181,7 +181,7 @@ Phaser.GameObjectFactory.prototype = { }, /** - * Description. + * Creates a new Graphics object. * * @method graphics * @param {number} x - X position of the new graphics object. @@ -195,7 +195,9 @@ Phaser.GameObjectFactory.prototype = { }, /** - * Description. + * Emitter is a lightweight particle emitter. It can be used for one-time explosions or for + * continuous effects like rain and fire. All it really does is launch Particle objects out + * at set intervals, and fixes their positions and velocities accorindgly. * * @method emitter * @param {number} [x=0] - The x coordinate within the Emitter that the particles are emitted from. @@ -210,7 +212,7 @@ Phaser.GameObjectFactory.prototype = { }, /** - * Description. + * * Create a new BitmapText. * * @method bitmapText * @param {number} x - X position of the new bitmapText object. @@ -268,7 +270,7 @@ Phaser.GameObjectFactory.prototype = { }, /** - * Description. + * A dynamic initially blank canvas to which images can be drawn * * @method renderTexture * @param {string} key - Asset key for the render texture. diff --git a/src/gameobjects/Graphics.js b/src/gameobjects/Graphics.js index c1706ea1..e2303e9f 100644 --- a/src/gameobjects/Graphics.js +++ b/src/gameobjects/Graphics.js @@ -5,7 +5,7 @@ */ /** -* Description. +* Creates a new Graphics object. * * @class Phaser.Graphics * @constructor diff --git a/src/gameobjects/RenderTexture.js b/src/gameobjects/RenderTexture.js index ee5799d3..597fd700 100644 --- a/src/gameobjects/RenderTexture.js +++ b/src/gameobjects/RenderTexture.js @@ -5,7 +5,7 @@ */ /** -* Description of constructor. +* A dynamic initially blank canvas to which images can be drawn * @class Phaser.RenderTexture * @constructor * @param {Phaser.Game} game - Current game instance.