RoundedRectangle#RoundedRectangle

new RoundedRectangle(x, y, width, height, radius) The Rounded Rectangle object is an area defined by its position and has nice rounded corners,as indicated by its top-left corner point (x, y) and by its width and its height. Parameters Name Type Argument Default Description x number <optional> 0 The x coordinate of the top-left corner of the Rectangle. y number <optional> 0 The y coordinate of the top-left corner of the Rectangle. width number <optional> 0 Th

RoundedRectangle#radius

radius : number The radius of the rounded corners. Source code: geom/RoundedRectangle.js (Line 51)

RoundedRectangle#height

height : number The height of the Rectangle. This value should never be set to a negative. Source code: geom/RoundedRectangle.js (Line 46)

RoundedRectangle#contains()

contains(x, y) → {boolean} Determines whether the specified coordinates are contained within the region defined by this Rounded Rectangle object. Parameters Name Type Description x number The x coordinate of the point to test. y number The y coordinate of the point to test. Returns boolean - A value of true if the RoundedRectangle Rectangle object contains the specified point; otherwise false. Source code: geom/RoundedRectangle.js (Line 75)

RoundedRectangle#clone()

clone() → {Phaser.RoundedRectangle} Returns a new RoundedRectangle object with the same values for the x, y, width, height andradius properties as this RoundedRectangle object. Returns Phaser.RoundedRectangle - Source code: geom/RoundedRectangle.js (Line 62)

Rope#z

[readonly] z : number The z depth of this Game Object within its parent Group.No two objects in a Group can have the same z value.This value is adjusted automatically whenever the Group hierarchy changes.If you wish to re-order the layering of a Game Object then see methods like Group.moveUp or Group.bringToTop. Inherited From Phaser.Component.Core#z Source code: gameobjects/components/Core.js (Line 177)

Rope#y

y : number The position of the Game Object on the y axis relative to the local coordinates of the parent. Inherited From Phaser.Component.PhysicsBody#y Source code: gameobjects/components/PhysicsBody.js (Line 124)

Rope#x

x : number The position of the Game Object on the x axis relative to the local coordinates of the parent. Inherited From Phaser.Component.PhysicsBody#x Source code: gameobjects/components/PhysicsBody.js (Line 98)

Rope#world

world : Phaser.Point The world coordinates of this Game Object in pixels.Depending on where in the display list this Game Object is placed this value can differ from position,which contains the x/y coordinates relative to the Game Objects parent. Inherited From Phaser.Component.Core#world Source code: gameobjects/components/Core.js (Line 211)

Rope#width

width : number The width of the displayObjectContainer, setting this will actually modify the scale to achieve the value set Inherited From PIXI.DisplayObjectContainer#width Source code: pixi/display/DisplayObjectContainer.js (Line 571)