map visualization

This commit is contained in:
2024-09-02 13:06:35 -04:00
parent 1dc6329252
commit 343778a883
4 changed files with 71 additions and 14 deletions

View File

@@ -153,7 +153,7 @@ pub struct BiomeChunk {
impl BiomeChunk {
pub fn get_biome(&self, x: usize, y: usize) -> &Vec<f32> {
return &self.tiles[x as usize + y as usize * Chunk::SIZE];
return &self.tiles[x + y * Chunk::SIZE];
}
pub fn get_biome_data(&self, x: usize, y: usize) -> &BiomeData {