Function drawTile

  • Draw a tile to the graphics context

    Parameters

    • tiles: TileSet

      The tile set containing the tile to draw

    • x: number

      The x coordinate to draw at

    • y: number

      The y coordinate to draw at

    • tile: number

      The index of the tile to render

    • width: number = tiles.tileWidth

      The width to render the tile at in pixels

    • height: number = tiles.tileHeight

      The height to render the tile at in pixels

    • Optional col: string

    Returns void

Generated using TypeDoc