Constructor
new Drawable(x, y)
Creates a new Drawable.
Parameters:
| Name | Type | Description |
|---|---|---|
x | number | The initial x-coordinate. |
y | number | The initial y-coordinate. |
Members
hidden :boolean
Type:
- boolean
Methods
draw()
Draws the object on the canvas. This method should be overridden by subclasses.