summaryrefslogtreecommitdiff
path: root/src/engine/constants.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-07-21 12:37:56 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-07-21 12:37:56 +0200
commita1f2934e82312761b6eb2cc2cb427895868f5f19 (patch)
tree4991634a6584e5296d4a5c8e80896cff79cf50c3 /src/engine/constants.rs
parent595c1cf576677415b7d76f620e30032734d61c85 (diff)
Added an index, to make the missile towers a proper circular buffer
Diffstat (limited to 'src/engine/constants.rs')
-rw-r--r--src/engine/constants.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/engine/constants.rs b/src/engine/constants.rs
index e77392e..e321a81 100644
--- a/src/engine/constants.rs
+++ b/src/engine/constants.rs
@@ -3,6 +3,7 @@ pub const SINGLE_MAP_WIDTH: u8 = FULL_MAP_WIDTH/2;
pub const MAP_HEIGHT: u8 = 8;
pub const MISSILE_COOLDOWN: usize = 3;
+pub const MISSILE_COOLDOWN_STATES: usize = MISSILE_COOLDOWN+1;
pub const MISSILE_SPEED: usize = 2;
pub const MISSILE_MAX_SINGLE_CELL: usize = SINGLE_MAP_WIDTH as usize / MISSILE_SPEED;
pub const MISSILE_DAMAGE: u8 = 5;