forked from github/game-off-2012
/
assets.js
58 lines (58 loc) · 1.99 KB
/
assets.js
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
var assets = {
objects: {
"barrel-blue": { collision: "cylinder", mass: 250, sound: "metal" },
"barrel-red": { collision: "cylinder", mass: 250, sound: "metal" },
"barrel-rusty": { collision: "cylinder", mass: 250, sound: "metal" },
"gas-tank": { collision: "cylinder", mass: 350, sound: "metal" },
"military-box": { collision: "box", mass: 200, sound: "metal" },
"trash": { collision: "box", mass: 150 },
"turbine": { collision: "box", sound: "metal" }
},
items: {
"ammo-box": { name: "ammo", collision: "box", mass: 250, sound: "metal", item: { type: "clips", value: 2 } },
"health-box": { name: "health pack", collision: "box", mass: 250, sound: "metal", item: { type: "hp", value: 25 } },
"heated-forks-box": { name: "heated forks ammo upgrade", collision: "box", mass: 150, item: { type: "ammoType", value: "heated" } },
"plasma-forks-box": { name: "plasma forks ammo upgrade", collision: "box", mass: 150, item: { type: "ammoType", value: "plasma" } }
},
monsters: {
"robot": {
collision: "capsule",
character: { speed: 4.0, hp: 50 },
animation: { type: "morph", duration: "750" },
sound: "metal"
}
},
lights: {
"ceiling-lamp": { type: "ceiling", offset: { x: 0, y: -0.2, z: 0 } }
},
sounds: {
"shoot": [ "fork-launch.ogg" ],
"shoot-dry": [ "empty-gun.ogg" ],
"reload": [ "reload.ogg" ],
"pick-up": [ "pick-up.ogg" ],
"metal": [ "metal-1.ogg", "metal-2.ogg", "metal-3.ogg" ],
"robot-death": [ "robot-death.ogg" ]
},
materials: {
"metal-01": { repeat: 4 },
"metal-02": {},
"metal-03": {},
"metal-bumps-01": { repeat: 2 },
"metal-bumps-02": {},
"metal-bumps-03": {},
"metal-colored-01": {},
"metal-colored-02": { repeat: 2 },
"metal-colored-03": {},
"metal-colored-04": {},
"metal-colored-05": {},
"metal-colored-06": {},
"metal-colored-07": {},
"metal-colored-08": { repeat: 2 },
"metal-colored-09": {},
"metal-corrugated-01": { repeat: 2 },
"metal-corrugated-02": {},
"metal-worn-01": {},
"metal-worn-02": {},
},
environments: {}
};