-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sound
53 lines (42 loc) · 808 Bytes
/
Sound
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
import ddf.minim.*;
Minim m = new Minim(this);
AudioPlayer sound;
void playerHit(){
sound.loadFile("glassHit.wav", 1024);
sound.play();
}
void AIHit(){
sound.loadFile("glassHitAI.wav", 1024);
sound.play();
}
void gravelHit(){
sound.loadFile("gravelHit.wav", 1024);
sound.play();
}
void hover(){
sound.loadFile("hoverSelect.wav", 1024);
sound.play();
}
void finalSelect(){
sound.loadFile("finalSelect.wav", 1024);
sound.play();
}
void playerHit(){
sound.loadFile("glassHit.wav", 1024);
sound.play();
}
void gameStart(){
sound.loadFile("gameStart.wav", 1024);
sound.play();
}
void gameWin(){
sound.loadFile("gameWin.wav", 1024);
sound.play();
}
void gameLose(){
sound.loadFile("gameLose.wav", 1024);
sound.play();
}
m.stop();
sound.stop();
super.stop();