From 8263d02a433c87fbfa246cdc80aa26a4dadb78f2 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sun, 8 Jul 2018 13:23:18 +0200 Subject: Started moving constants to a constants file --- src/engine/constants.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/engine/constants.rs (limited to 'src/engine/constants.rs') diff --git a/src/engine/constants.rs b/src/engine/constants.rs new file mode 100644 index 0000000..5e1b9f3 --- /dev/null +++ b/src/engine/constants.rs @@ -0,0 +1,10 @@ +pub const FULL_MAP_WIDTH: u8 = 16; +pub const SINGLE_MAP_WIDTH: u8 = FULL_MAP_WIDTH/2; + +pub const MISSILE_COOLDOWN: usize = 3; +pub const MISSILE_SPEED: usize = 2; +pub const MISSILE_MAX_SINGLE_CELL: usize = SINGLE_MAP_WIDTH as usize / MISSILE_SPEED; + +pub const DEFENCE_HEALTH: usize = 4; // '20' health is 4 hits + +pub const MAX_TESLAS: usize = 2; -- cgit v1.2.3