-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathprojectileTypes.mjs
More file actions
119 lines (113 loc) · 1.92 KB
/
projectileTypes.mjs
File metadata and controls
119 lines (113 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/**
* @file ninjanode main weapon/projectile definitions.
*/
export const projectileTypes = {
laser: {
name: 'Death Laser',
speed: 1125,
life: 2500, // How many ms till it dies?
sound: 3,
sounds: {
emission: ['laser1'],
reception: ['hit1', 'hit2'],
},
damage: 50,
size: {
hitRadius: 20,
width: 8,
height: 70,
},
knockBackForce: 33.3,
yOffset: -30,
},
biglaser: {
name: 'Super Laser',
damage: 40,
speed: 1000,
life: 5000,
sound: 1,
sounds: {
emission: ['laser2'],
reception: ['hit1', 'hit2'],
},
size: {
hitRadius: 20,
width: 8,
height: 70,
},
knockBackForce: 66,
yOffset: -50,
},
duallaser: {
name: 'Dual Laser',
damage: 30,
speed: 883.4,
life: 2500,
sound: 3,
sounds: {
emission: ['laser2'],
reception: ['hit1', 'hit2'],
},
size: {
hitRadius: 25,
width: 25,
height: 50,
},
knockBackForce: 50,
yOffset: -50,
},
energy: {
name: 'Energy Orb',
damage: 30,
speed: 333,
life: 5500,
sound: 2,
sounds: {
emission: ['energy'],
reception: ['hit1', 'hit2'],
},
size: {
hitRadius: 21,
width: 64,
height: 64,
},
knockBackForce: 100,
yOffset: -8,
},
mine: {
name: 'Mine',
damage: 100,
speed: 0,
life: 30 * 60 * 1000, // 30 Minutes
sound: 4,
sounds: {
emission: ['mine'],
reception: ['mineBoom'],
},
size: {
hitRadius: 20,
width: 40,
height: 40,
},
knockBackForce: 83,
yOffset: 0,
},
fire: {
name: 'Fire',
damage: 40,
speed: 583,
life: 1000,
sound: 5,
sounds: {
emission: ['flame'],
reception: ['hit1', 'hit2'],
},
size: {
hitRadius: 21,
width: 64,
height: 64,
},
knockBackForce: 166,
yOffset: -8,
},
};