summaryrefslogtreecommitdiff
path: root/src/engine/constants.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-07-08 13:23:18 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-07-08 13:23:18 +0200
commit8263d02a433c87fbfa246cdc80aa26a4dadb78f2 (patch)
treecaeefc2106e9874dccd5a6a437c7b5542e6dd2d3 /src/engine/constants.rs
parent772d173dc2864e8fdaf98b9a549e2ed0f4be2099 (diff)
Started moving constants to a constants file
Diffstat (limited to 'src/engine/constants.rs')
-rw-r--r--src/engine/constants.rs10
1 files changed, 10 insertions, 0 deletions
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;