Name | Type | Description |
---|---|---|
game |
Core.Game | the game object. |
width |
Number | width of the plane. |
height |
Number | height of the plane. |
color |
String | color/style of 2d context. |
Methods
-
getDimentions ()Utils.Vector2d
-
get width & height
Returns:
Type Description Utils.Vector2d vector2d of (width, height) -
renders the plane
-
sets width & height
Name Type Description w
Number width to set h
Number height to set