Constructor
# new Wall(spawn, textured)
Create a new wall entity.
Parameters:
Name | Type | Description |
---|---|---|
spawn |
Object
|
the wall spawn coordinates |
x |
number
|
the wall spawn x-coordinate |
y |
number
|
the wall spawn y-coordinate |
textured |
boolean
|
whether or not to use texture |
Classes
Members
Methods
# render(context) → {void}
Render the wall entity on the canvas.
This is called every frame/repaint to render the entity. Note that this is
a statically-placed entity, therefore the x,y coordinates will not change on
update.
Parameters:
Name | Type | Description |
---|---|---|
context |
CanvasRenderingContext2D
|
the canvas rendering context |
void