diff options
Diffstat (limited to 'src/render/composite.rs')
-rw-r--r-- | src/render/composite.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/render/composite.rs b/src/render/composite.rs index 51c6f6a..7409478 100644 --- a/src/render/composite.rs +++ b/src/render/composite.rs @@ -1,8 +1,10 @@ use image::ImageBuffer; use image::Rgba; +use crate::SEG_SIZE; + pub const REGION_SIZE: usize = 16 * 8; -pub const CHUNK_HEIGHT: usize = 384; +pub const CHUNK_HEIGHT: usize = 320; pub const CHUNK_SIZE: usize = 16; pub fn image_buffer_blit( @@ -28,8 +30,7 @@ pub fn image_buffer_blit( pub fn isometric_coord_mapping(x: i32, y: i32, z: i32) -> (u32, u32) { // const BASE_X: i32 = 1016; - // const BASE_Y: i32 = 2040; - const BASE_X: i32 = 128 - 8; + const BASE_X: i32 = (SEG_SIZE as i32 * 8) - 8; const BASE_Y: i32 = 2040; const XDIFF: (i32, i32) = (-8, 4); |