From 3a3c76de87bf031d3731c7d67ce76ff3c02e0c99 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Fri, 20 Mar 2009 01:56:12 +0000 Subject: [PATCH] Added sound effect for moth --- data/sounds/pea.wav | Bin 0 -> 6460 bytes defs.h | 3 ++- rc.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 data/sounds/pea.wav diff --git a/data/sounds/pea.wav b/data/sounds/pea.wav new file mode 100644 index 0000000000000000000000000000000000000000..a5f992564549700296cc9d2dfe41e7ff4b8cea01 GIT binary patch literal 6460 zcmW-l2UHX3*T&NuAwYo8ArNW`C7}ce40cghUDvg)b=5`JT^klwT@_qi>#Eqh*w@}g zK20bggib<9AhZyANDt}BH~T-6J2Pj_yw82_?>_gOIa!oDb7pb?1hRC>k{O$R%O`t6 zAP^{cc+nt`h$RpR4B`oym;1wFfAD$k{Fw`Kr!AU}2k(>8(^D9U;ExG`Y*?4SP6NKM z*_Gz1b51%RyK}SrK#019r+V9 z*{U`iR=I{h>5u9^PF&FLRXIkVkNvDhPb5z)Q;?Nrb&?`+@{_7?VAKVJ%@`7?;AW}% zsw%)xV><{X5Ej7ZnwHwn+r6O&ETN8rxZUo1{Z0nCdED|@6MV+=l+VF%c6d117*R`p z>A%DiAH0V4gBRBg8ngs`#;XiXckUoKjRx2;$gzpvkvQ{9*BjIo!*xgdq`>mjbjz9w z>$Z$IhAm61J6*Bn>$Ysy8S@I`H+_vRNRw>nS4C=XsYk~an(iw@Cff8T4GWBAh5|Fk z2u%7Lnhh*XyKsP3)cY9MPd+d<8uP4MEtQUN^B4O+uq%#g$Ys}U z$3xpB+zLr`yvLq|O|iHmj=GM!lvo9#0y&!i@oYrD_c-BQ<+cbt47-Tjia+7@2~L2J zo#$Zbh~0?oh^>&vPA24U6ajMwr^e@^cR;_Pw_tCef)FtLII)?)#@&LaB9x8+m((G0 z4cTTpZ{g0N1ePz8*C35%vTcVW+9|X&7*vyC&fD++c(Jn!vedQLlxUw~shAW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7R2d9YjmjP&IUw z$As_1N@dJ=_gIk9F_EBRO;}a4)c#=CfeDe)I372iI}RJKA6qlNLz$-9p~9+%)L&H` zl|famUaNs<5;St{4|;|1h$+#WVLfVF@A%i5?)u`&bslhhbv}aR!4&XOBngw?wi?gI zm*L57m)!Q^Q}ALunb72!?Pc>gPAG8K5K=up5UzT>_ITjY=<&w$y4PW^RbDAx172)m znOCi6v1g{|c8^0Ia`&n3KJHxnO?y7Il*Y{49 zJ;+vWxo=)QdDZybh%<5x1Nx`BcKxr0Bz=y)SDUEG(Zp$pntJtd^=);9hO1kmf1%r` zE6`5S&eEy0_qCPU2U?p}u8%j)HkKP78l8qZy;X+>6^=|EGg(bZ=4s|MGu_;2UT3*& z?X#`4@35yhesWd2QXxpF9>RnjhcAZz0FQ+~hc83DLqA8KMaQC_V`gIQ=uc=dx)d!! zKg5VJ0!$fZ0CNOmKrhAa#eKkSz{TN4ac%fKcMiTDzt%n9{YQ5(z6-wse-z(}KkQb5 z`yGqI_@Wz;|A%ZtUPK~L(@`H03Mdy+3Yh`9=X&kj;oRpWJC`}5oz3>Iwk6=d)Thng zCaa7VJ~D|+U(8hNY8zlLcL@?q8R z68NtOHDVB+1YZCzgoh)SpnK3NbQR_j_7d(kZZ>u^<{Nq$nuVgF-lD=$Skzb4H1u+` z5WN_kjDCzRMSVv8fqaU5g{X&%;CYA;WFO)P@-Xrk;x+tF*pE;QG!B*lUkaaqt$`b1 LTOcj2V95UijTz9; literal 0 HcmV?d00001 diff --git a/defs.h b/defs.h index c8c624b..803a714 100644 --- a/defs.h +++ b/defs.h @@ -362,7 +362,7 @@ /* enums */ /* sounds */ -#define MAXFX 64 +#define MAXFX 65 #define FX_SHOOT 0 #define FX_SLAM 1 #define FX_KILL 2 @@ -427,6 +427,7 @@ #define FX_CHOMP 61 #define FX_GROWL 62 #define FX_LAMP 63 +#define FX_MOTHFIRE 64 // card suits #define CS_HEART 1 diff --git a/rc.c b/rc.c index abbb70d..4fb3865 100644 --- a/rc.c +++ b/rc.c @@ -5139,6 +5139,7 @@ int movesprite(sprite_t *s) { // get angle towards target ang = atan2(target->y - s->y, target->x - s->x); // shoot + playfx(FX_MOTHFIRE); ss = addsprite(P_MOTHFIRE,s->x,s->y - s->img->h/2,"mothfire" ); ss->xs = cos(ang) * getspeed(ss); ss->ys = sin(ang) * getspeed(ss); @@ -9759,6 +9760,7 @@ int initsound(void) { loadfx(FX_CHOMP, "chomp.wav"); loadfx(FX_GROWL, "growl.wav"); loadfx(FX_LAMP, "lamp.wav"); + loadfx(FX_MOTHFIRE, "pea.wav"); // load sound effects for (i = 0; i < MAXFX; i++) {