Phaser API Documentation

  Version: 
Filter
Namespace: Rope
Phaser.Types.GameObjects.Rope

Type Definitions

RopeConfig
Focus
Focus
Properties:
name type arguments Default description
key string <optional>

The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. If not given, __DEFAULT is used.

frame string | integer | null <optional>

An optional frame from the Texture this Game Object is rendering with.

points integer | Array.<Phaser.Types.Math.Vector2Like> <optional> 2

An array containing the vertices data for this Rope, or a number that indicates how many segments to split the texture frame into. If none is provided a simple quad is created. See setPoints to set this post-creation.

horizontal boolean <optional> true

Should the vertices of this Rope be aligned horizontally (true), or vertically (false)?

colors Array.<number> <optional>

An optional array containing the color data for this Rope. You should provide one color value per pair of vertices.

alphas Array.<number> <optional>

An optional array containing the alpha data for this Rope. You should provide one alpha value per pair of vertices.

Type:
object
Since: 3.50.0
Focus
Focus