Skip to main content

tile_index_to_2d

Function tile_index_to_2d 

Source
pub fn tile_index_to_2d(flat: usize, tiles_x: usize) -> (usize, usize)
Expand description

Convert a flat tile index back to (tile_x, tile_y) for a grid with tiles_x columns.