You’re reading the docs for Phaser v3.88.2. The latest is Phaser v4.1.0.

Types.GameObjects.Rope

Phaser.Types.GameObjects.Rope

RopeConfig

staticRopeConfig

nametypeoptionaldefaultdescription
keystringYesThe key of the Texture this Game Object will use to render with, as stored in the Texture Manager. If not given, __DEFAULT is used.
framestring | integernullYes
pointsinteger | Array.<Phaser.Types.Math.Vector2Like>Yes2An 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.
horizontalbooleanYestrueShould the vertices of this Rope be aligned horizontally (true), or vertically (false)?
colorsArray.<number>YesAn optional array containing the color data for this Rope. You should provide one color value per pair of vertices.
alphasArray.<number>YesAn optional array containing the alpha data for this Rope. You should provide one alpha value per pair of vertices.

Type: object

Member of: Phaser.Types.GameObjects.Rope

Source: src/gameobjects/rope/typedefs/RopeConfig.js#L1
Since: 3.50.0