Tileset#draw()

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)
doc_phaser
2017-02-14 11:16:50
Comments
Leave a Comment

Please login to continue.