Class: Plane

Graphics.Plane

A rectangular-shaped graphic

new Graphics.Plane (game, width, height, color)

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)

render ()

renders the plane

setDimentions (w, h)

sets width & height
Name Type Description
w Number width to set
h Number height to set