hex coords

This commit is contained in:
2024-03-27 22:02:15 -04:00
parent 5c9b5efbf8
commit c4da9ab87a
7 changed files with 191 additions and 37 deletions

View File

@@ -20,9 +20,12 @@ pub mod prelude {
}
pub struct Chunk {
pub points: Vec<f32>,
pub size: usize,
pub chunk_offset: IVec2,
}
impl Chunk {
pub const SIZE: usize = 32;
}
pub struct Map {
pub chunks: Vec<Chunk>,
pub height: usize,