Removed need to load settings for the bitwise game engine
[entelect-challenge-tower-defence.git] / src / engine / constants.rs
1 pub const FULL_MAP_WIDTH: u8 = 16;
2 pub const SINGLE_MAP_WIDTH: u8 = FULL_MAP_WIDTH/2;
3 pub const MAP_HEIGHT: u8 = 8;
4
5 pub const MISSILE_COOLDOWN: usize = 3;
6 pub const MISSILE_COOLDOWN_STATES: usize = MISSILE_COOLDOWN+1;
7 pub const MISSILE_SPEED: usize = 2;
8 pub const MISSILE_MAX_SINGLE_CELL: usize = SINGLE_MAP_WIDTH as usize / MISSILE_SPEED;
9 pub const MISSILE_DAMAGE: u8 = 5;
10 pub const MISSILE_PRICE: u16 = 30;
11 pub const MISSILE_CONSTRUCTION_TIME: u8 = 1;
12
13 pub const DEFENCE_HEALTH: usize = 4; // '20' health is 4 hits
14 pub const DEFENCE_PRICE: u16 = 30;
15 pub const DEFENCE_CONSTRUCTION_TIME: u8 = 3;
16
17 pub const TESLA_MAX: usize = 2;
18 pub const TESLA_COOLDOWN: u8 = 10;
19 pub const TESLA_FIRING_ENERGY: u16 = 100;
20 pub const TESLA_DAMAGE: u8 = 20;
21 pub const TESLA_PRICE: u16 = 300;
22 pub const TESLA_CONSTRUCTION_TIME: u8 = 10;
23
24 pub const ENERGY_GENERATED_BASE: u16 = 5;
25 pub const ENERGY_GENERATED_TOWER: u16 = 3;
26 pub const ENERGY_PRICE: u16 = 20;
27 pub const ENERGY_CONSTRUCTION_TIME: u8 = 1;
28
29 pub const DECONSTRUCT_ENERGY: u16 = 5;