GameObjectCreator#rope()

rope(x, y, width, height, key, frame) → {Phaser.Rope}

Creates a new Rope object.

Parameters
Name Type Description
x number

The x coordinate (in world space) to position the Rope at.

y number

The y coordinate (in world space) to position the Rope at.

width number

The width of the Rope.

height number

The height of the Rope.

key string | Phaser.RenderTexture | Phaser.BitmapData | PIXI.Texture

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.

frame string | number

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.

Returns

The newly created rope object.

Source code: gameobjects/GameObjectCreator.js (Line 181)
doc_phaser
2017-02-14 10:48:33
Comments
Leave a Comment

Please login to continue.