-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoundEffects.adept
64 lines (60 loc) · 2.2 KB
/
SoundEffects.adept
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
import audio
struct SoundEffects (
cannon,
cannon_death,
cannon_ready,
center,
drill,
error,
factory,
gun,
gunfire,
heavy_gun,
ling_bite,
ling_death,
ling_spawn,
marine_death,
marine_ready,
worker_death,
worker_ready Sound
) {
func load {
this.cannon.load(where() + "assets/sfx/cannon.wav", false, 1.0f)
this.cannon_death.load(where() + "assets/sfx/cannon_death.wav", false, 1.0f)
this.cannon_ready.load(where() + "assets/sfx/cannon_ready.wav", false, 1.0f)
this.center.load(where() + "assets/sfx/center.wav", false, 1.0f)
this.drill.load(where() + "assets/sfx/drill.wav", false, 1.0f)
this.error.load(where() + "assets/sfx/error.wav", false, 1.0f)
this.factory.load(where() + "assets/sfx/factory.wav", false, 1.0f)
this.gun.load(where() + "assets/sfx/gun.wav", false, 1.0f)
this.gunfire.load(where() + "assets/sfx/gunfire.wav", false, 1.0f)
this.heavy_gun.load(where() + "assets/sfx/heavy_gun.wav", false, 1.0f)
this.ling_bite.load(where() + "assets/sfx/ling_bite.wav", false, 1.0f)
this.ling_death.load(where() + "assets/sfx/ling_death.wav", false, 1.0f)
this.ling_spawn.load(where() + "assets/sfx/ling_spawn.wav", false, 1.0f)
this.marine_death.load(where() + "assets/sfx/marine_death.wav", false, 1.0f)
this.marine_ready.load(where() + "assets/sfx/marine_ready.wav", false, 1.0f)
this.worker_death.load(where() + "assets/sfx/worker_death.wav", false, 1.0f)
this.worker_ready.load(where() + "assets/sfx/worker_ready.wav", false, 1.0f)
}
func unload {
this.cannon.destroy()
this.cannon_death.destroy()
this.cannon_ready.destroy()
this.center.destroy()
this.drill.destroy()
this.error.destroy()
this.factory.destroy()
this.gun.destroy()
this.gunfire.destroy()
this.heavy_gun.destroy()
this.ling_bite.destroy()
this.ling_death.destroy()
this.ling_spawn.destroy()
this.marine_death.destroy()
this.marine_ready.destroy()
this.worker_death.destroy()
this.worker_ready.destroy()
}
}
sfx SoundEffects