draw(context, x, y, index)
Draws a tile from this Tileset at the given coordinates on the context.
Parameters
Name | Type | Description |
---|---|---|
context | CanvasRenderingContext2D | The context to draw the tile onto. |
x | number | The x coordinate to draw to. |
y | number | The y coordinate to draw to. |
index | integer | The index of the tile within the set to draw. |
- Source code: tilemap/Tileset.js (Line 123)
Please login to continue.