Interface: Drawable

Drawable

An interface for a drawable object
Properties:
Name Type Description
name String the name of the drawable
Source:

Methods

constructor(name)

Creates a Drawable
Parameters:
Name Type Description
name String name
Source:

draw(context, x, y)

Draw function
Parameters:
Name Type Description
context RenderingContext the context to draw on
x Number the x coordinate to draw at
y Number the y coordinate to draw at
Source: