Constants cleanup

This commit is contained in:
zenoamaro committed 2019-06-30 05:02:07 +02:00
1 parent c5ead3632f
commit a1c2cdd937
3 files changed
+53 -51

No files matched your search

-29
View File
@@ -12,35 +12,6 @@ export function drawDirt(ctx, x, y, r, c) {
drawCircle(ctx, x, y, r, c);
}
export const WEAPON_TYPES = [
{id:'tracer', name:'Tracer', explosion:{type:'tracer'}},
{id:'babyMissile', name:'Baby Missile', explosion:{type:'blast', r:5}},
{id:'missile', name:'Missile', explosion:{type:'blast', r:20}},
{id:'babyNuke', name:'Baby Nuke', explosion:{type:'blast', r:50}},
{id:'nuke', name:'Nuke', explosion:{type:'blast', r:100}},
{id:'smallDirt', name:'Small Dirt', explosion:{type:'dirt', r:25}},
{id:'dirt', name:'Dirt', explosion:{type:'dirt', r:50}},
{id:'largeDirt', name:'Ton of Dirt', explosion:{type:'dirt', r:75}},
{id:'smallDigBomb', name:'Small Dig Bomb', explosion:{type:'digBomb', r:25}},
{id:'digBomb', name:'Dig Bomb', explosion:{type:'digBomb', r:50}},
{id:'largeDigBomb', name:'Large Dig Bomb', explosion:{type:'digBomb', r:75}},
];
export const DEATH_SPECS = [
{type: 'blast', r: 15},
{type: 'blast', r: 30},
{type: 'blast', r: 60},
{type: 'dirt', r: 25},
{type: 'dirt', r: 50},
{type: 'dirt', r: 75},
{type: 'digBomb', r: 25},
{type: 'digBomb', r: 50},
{type: 'digBomb', r: 75},
{type: 'dirtCone', r: 50},
{type: 'dirtCone', r: 100},
{type: 'dirtCone', r: 150},
];
export const EXPLOSION_TYPES = {
tracer: {
create(spec, x, y) {