Constants
This commit is contained in:
1 parent
cfd6a59c5b
commit
37eab40230
3 files changed
+42
-20
No files matched your search
@@ -0,0 +1,29 @@
|
||||
export const W = 640;
|
||||
export const H = 400;
|
||||
export const Z = 2;
|
||||
|
||||
export const MAX_PLAYERS = 6;
|
||||
|
||||
export const PLAYER_COLORS = [
|
||||
'tomato',
|
||||
'royalblue',
|
||||
'greenyellow',
|
||||
'gold',
|
||||
'hotpink',
|
||||
'orchid',
|
||||
];
|
||||
|
||||
export const WEAPON_TYPES = [
|
||||
{id:'baby-missile', name:'Baby Missile', xr:5},
|
||||
{id:'missile', name:'Missile', xr:10},
|
||||
{id:'baby-nuke', name:'Baby Nuke', xr:50},
|
||||
{id:'nuke', name:'Nuke', xr:100},
|
||||
];
|
||||
|
||||
export const PLAYER_INITIAL_POWER = 300;
|
||||
export const MAX_WIND = 25;
|
||||
export const REDUCTION_FACTOR = 10;
|
||||
export const MIN_BULLET_SOUND_FREQUENCY = 220;
|
||||
export const MAX_BULLET_SOUND_FREQUENCY = 2200;
|
||||
export const PROJECTILE_ITERATIONS_PER_FRAME = 30;
|
||||
export const PROJECTILE_ITERATION_PROGRESS = 0.01;
|
||||
Reference in new issue
Block a user