diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2021-03-21 19:33:05 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2021-03-21 19:33:05 +0100 |
commit | 585d82473ccf566965ded0e50eea1669c3e1cdf3 (patch) | |
tree | f63ce7448ad95ae7ac4b2bed11550a315e9db0e6 /src/constants.rs | |
parent | 420d0f36adeed7fa254497b49ef91a7574628082 (diff) |
moving more to constants
Diffstat (limited to 'src/constants.rs')
-rw-r--r-- | src/constants.rs | 11 |
1 files changed, 4 insertions, 7 deletions
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; |