30 lines
718 B
JavaScript
30 lines
718 B
JavaScript
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;
|