From 601a366b8c665f760463259552fedd7be43e5754 Mon Sep 17 00:00:00 2001 From: oroborus Date: Sat, 2 Feb 2008 20:37:46 +0000 Subject: - zvuky v hre - hudba/zvuky sa daju zapnut/vypnut - tuxovia nemozu ist v arene do nekonecna - oprava chyby, ak bol zaskrknuty iba samopal, hra sa zasekla - do widgetu textfiled sa neda pisat donekonecna - tux ovladany pomocou keyboard_left stiriela a meni zbran - tuxovia nemozu prechadzat cez seba git-svn-id: http://opensvn.csie.org/tuxanci_ng@2 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/gun.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'src/gun.c') diff --git a/src/gun.c b/src/gun.c index 1cb35fe..199324f 100644 --- a/src/gun.c +++ b/src/gun.c @@ -10,6 +10,7 @@ #include "myTimer.h" #include "main.h" #include "item.h" +#include "sound.h" #include "screen_world.h" #include "interface.h" #include "gun.h" @@ -215,17 +216,29 @@ void shotInGun(tux_t *tux) { switch( tux->gun ) { - case GUN_SIMPLE : shotInGunSimpe(tux); + case GUN_SIMPLE : + playSound("gun_revolver", SOUND_GROUP_BASE); + shotInGunSimpe(tux); break; - case GUN_DUAL_SIMPLE : shotInGunDualSimpe(tux); + case GUN_DUAL_SIMPLE : + playSound("gun_revolver", SOUND_GROUP_BASE); + shotInGunDualSimpe(tux); break; - case GUN_SCATTER : shotInGunScatter(tux); + case GUN_SCATTER : + playSound("gun_scatter", SOUND_GROUP_BASE); + shotInGunScatter(tux); break; - case GUN_TOMMY : shotInGunTommy(tux); + case GUN_TOMMY : + playSound("gun_tommy", SOUND_GROUP_BASE); + shotInGunTommy(tux); break; - case GUN_LASSER : shotInGunLasser(tux); + case GUN_LASSER : + playSound("gun_lasser", SOUND_GROUP_BASE); + shotInGunLasser(tux); break; - case GUN_MINE : putInGunMine(tux); + case GUN_MINE : + playSound("put_mine", SOUND_GROUP_BASE); + putInGunMine(tux); break; } } -- cgit v1.2.3