From 585d82473ccf566965ded0e50eea1669c3e1cdf3 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 21 Mar 2021 19:33:05 +0100 Subject: moving more to constants --- src/constants.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/constants.rs') diff --git a/src/constants.rs b/src/constants.rs index c33e30b..d8effa8 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,11 +1,8 @@ -pub const TILE_SCALE: f32 = 3.0; +pub const TILE_SCALE: f32 = 3.5; pub const TILE_SIZE: f32 = 16.0; -pub const TILE_WIDTH: f32 = 16.0; -pub const BORDER_SIZE: f32 = 3.0; -pub const SHIFT_X: f32 = 50.0; -pub const SHIFT_Y: f32 = 50.0; -pub const COLUMNS: usize = 8; -pub const ROWS: usize = 8; +pub const WINDOW_HEIGHT: f32 = 600.0; +pub const WINDOW_WIDTH: f32 = 800.0; +pub const GRID_SIZE: usize = 8; pub const TILESHEET_GREEN: u32 = 0; pub const TILESHEET_YELLOW: u32 = 1; -- cgit v1.2.3