def load_square_sprite_image(img_path, n_sprites):
 (tile_rows, tile_cols) = get_tiles_height_width(n_sprites)
 return load_sprite_image(img_path, (tile_rows, tile_cols), n_sprites=n_sprites)

def load_square_sprite_image ( img_path , n_sprites ) : ( tile_rows , tile_cols ) = get_tiles_height_width ( n_sprites ) return load_sprite_image ( img_path , ( tile_rows , tile_cols ) , n_sprites = n_sprites )
just like load_sprite_image but assumes tiled image is square .