Function get_centered_pos_in_px

  • Gets the center position of a tile in pixels.

    Parameters

    • tile_pos: number

      the tile position.

    • tile_size: number

      the tile size.

    Returns number

    centered tile position in pixels.