Function get_tile_position

  • Gets the tile position of a given position in px.

    Parameters

    • pos: number

      the position in px.

    • tile_size: number

      the tile size.

    Returns number

    returns the tile position.