Added more sound effects for cards
This commit is contained in:
parent
9d2ac9010b
commit
fb1ca7cc83
Binary file not shown.
3
defs.h
3
defs.h
|
@ -201,7 +201,7 @@
|
||||||
/* enums */
|
/* enums */
|
||||||
|
|
||||||
/* sounds */
|
/* sounds */
|
||||||
#define MAXFX 41
|
#define MAXFX 42
|
||||||
#define FX_SHOOT 0
|
#define FX_SHOOT 0
|
||||||
#define FX_SLAM 1
|
#define FX_SLAM 1
|
||||||
#define FX_KILL 2
|
#define FX_KILL 2
|
||||||
|
@ -243,6 +243,7 @@
|
||||||
#define FX_ENGAGED 38
|
#define FX_ENGAGED 38
|
||||||
#define FX_FLOOD 39
|
#define FX_FLOOD 39
|
||||||
#define FX_CARD 40
|
#define FX_CARD 40
|
||||||
|
#define FX_POKER 41
|
||||||
|
|
||||||
// card suits
|
// card suits
|
||||||
#define CS_HEART 1
|
#define CS_HEART 1
|
||||||
|
|
3
rc.c
3
rc.c
|
@ -5296,6 +5296,7 @@ int initsound(void) {
|
||||||
loadfx(FX_ENGAGED, "engaged.wav");
|
loadfx(FX_ENGAGED, "engaged.wav");
|
||||||
loadfx(FX_FLOOD, "flood.wav");
|
loadfx(FX_FLOOD, "flood.wav");
|
||||||
loadfx(FX_CARD, "card.wav");
|
loadfx(FX_CARD, "card.wav");
|
||||||
|
loadfx(FX_POKER, "poker.wav");
|
||||||
|
|
||||||
// load sound effects
|
// load sound effects
|
||||||
for (i = 0; i < MAXFX; i++) {
|
for (i = 0; i < MAXFX; i++) {
|
||||||
|
@ -6009,6 +6010,8 @@ void gaincard(sprite_t *s, int cardid) {
|
||||||
// display BIG message
|
// display BIG message
|
||||||
addoutlinetext(320,190,TEXTSIZE_POKER,getpokermsg(pokereffect),&green, &black, POKERDELAY);
|
addoutlinetext(320,190,TEXTSIZE_POKER,getpokermsg(pokereffect),&green, &black, POKERDELAY);
|
||||||
|
|
||||||
|
playfx(FX_POKER);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue