diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2019-08-06 12:17:16 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2019-08-06 12:17:16 +0200 |
commit | 1e851a758e32834d909740df342831fef3d0e4b5 (patch) | |
tree | c5aaa9eead8d70ee86650fa36b0b4001bfe7e4e4 /src/constants.rs | |
parent | 4d8846395fe12e6d92014da10f1e017267af0c57 (diff) |
Lava map constants
Diffstat (limited to 'src/constants.rs')
-rw-r--r-- | src/constants.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/constants.rs b/src/constants.rs index 344c55b..a383d89 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,5 +1,7 @@ use crate::geometry::Vec2d; +pub mod lava; + pub const MAP_SIZE: usize = 33; pub const MAP_ROW_SIZE: [MapRow; MAP_SIZE] = [ MapRow { @@ -138,6 +140,8 @@ pub const MAP_ROW_SIZE: [MapRow; MAP_SIZE] = [ pub const MAP_BITSIZE: usize = 897; pub const MAP_U64S: usize = 15; +// TODO: Constant for lava map + pub struct MapRow { pub start_bit: usize, pub x_offset: usize, @@ -184,6 +188,6 @@ pub const COLLISION_DAMAGE: i32 = 20; pub const LAVA_DAMAGE: i32 = 3; -pub const LAVA_ROUND_START: u16 = 100; -pub const LAVA_ROUND_END: u16 = 350; -pub const MAX_ROUNDS: u16 = 400; +pub const LAVA_ROUND_START: usize = 100; +pub const LAVA_ROUND_END: usize = 350; +pub const MAX_ROUNDS: usize = 400; |