Rope
Class: Phaser.Rope
Constructor
new Rope(game, x, y, key, frame, points)
A Rope is a Sprite that has a repeating texture.
The texture will automatically wrap on the edges as it moves.
Please note that Ropes cannot have an input handler.
Parameters
Name | Type | Description |
---|---|---|
game | Phaser.Game | A reference to the currently running game. |
x | number | The x coordinate (in world space) to position the Rope at. |