Skip to content

Commit 3ec5f2e

Browse files
committed
Was able to figure out what the Array was made of through an example.
1 parent 1cfbb31 commit 3ec5f2e

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/gameobjects/GameObjectFactory.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,10 @@ Phaser.GameObjectFactory.prototype = {
221221
* @param {number} y - The y coordinate (in world space) to position the TileSprite at.
222222
* @param {string|Phaser.RenderTexture|Phaser.BitmapData|PIXI.Texture} key - This is the image or texture used by the TileSprite during rendering. It can be a string which is a reference to the Cache entry, or an instance of a RenderTexture or PIXI.Texture.
223223
* @param {string|number} frame - If this TileSprite is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index.
224-
* @param {Array} points Something something dark side.
224+
* @param {Array} points - An array of {Phaser.Point}.
225225
* @param {Phaser.Group} [group] - Optional Group to add the object to. If not specified it will be added to the World group.
226226
* @return {Phaser.TileSprite} The newly created tileSprite object.
227+
* Example usage: https://github.com/codevinsky/phaser-rope-demo/blob/master/dist/demo.js
227228
*/
228229
rope: function (x, y, key, frame, points, group) {
229230

src/gameobjects/Rope.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @author Richard Davey <rich@photonstorm.com>
3-
* @copyright 2014 Photon Storm Ltd.
2+
* @author Richard Davey <rich@photonstorm.com>, Rovanion Luckey <rovanion.luckey@gmail.com>
3+
* @copyright 2014 Photon Storm Ltd, Richard Davey, Rovanion Luckey
44
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
55
*/
66

@@ -16,7 +16,8 @@
1616
* @param {number} y - The y coordinate (in world space) to position the Rope at.
1717
* @param {string|Phaser.RenderTexture|Phaser.BitmapData|PIXI.Texture} key - This is the image or texture used by the Rope during rendering. It can be a string which is a reference to the Cache entry, or an instance of a RenderTexture or PIXI.Texture.
1818
* @param {string|number} frame - If this Rope is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index.
19-
* @param {Array} points Something something dark side.
19+
* @param {Array} points - An array of {Phaser.Point}.
20+
* Example usage: https://github.com/codevinsky/phaser-rope-demo/blob/master/dist/demo.js
2021
*/
2122
Phaser.Rope = function (game, x, y, key, frame, points) {
2223

0 commit comments

Comments
 (0)