CollisionDetectionTest/EnemyBullets.c
/* Plays the correct sound when enemy bullet is created, aka fired */
Plays the correct sound when enemy bullet is created, aka fired
Plays the correct sound when enemy bullet is created aka fired
void EnemyFire_SFX(Enemy *enemy, Sound *sound)
{
	if (enemy->type == 2 || enemy->type == 5)
	{
		loadSound(sound, "..\\CollisionDetectionTest\\SFX\\ShooterShoot.wav");
		playSound_Low(sound);
	}
	else if (enemy->type == 3)
	{
		loadSound(sound, "..\\CollisionDetectionTest\\SFX\\BigShotShoot.wav");
		playSound_Low(sound);
	}
	else if (enemy->type == 4)
	{
		loadSound(sound, "..\\CollisionDetectionTest\\SFX\\PeaShoot.wav");
		playSound_Low(sound);
	}
	else if (enemy->type == 6)
	{
		loadSound(sound, "..\\CollisionDetectionTest\\SFX\\TorpedoShoot.wav");
		playSound_Low(sound);
	}
}
void EnemyFire_SFX ( Enemy * enemy , Sound * sound ) { if ( enemy -> type == 2 || enemy -> type == 5 ) { loadSound ( sound , " \\ \\ \\ " ) ; playSound_Low ( sound ) ; } else if ( enemy -> type == 3 ) { loadSound ( sound , " \\ \\ \\ " ) ; playSound_Low ( sound ) ; } else if ( enemy -> type == 4 ) { loadSound ( sound , " \\ \\ \\ " ) ; playSound_Low ( sound ) ; } else if ( enemy -> type == 6 ) { loadSound ( sound , " \\ \\ \\ " ) ; playSound_Low ( sound ) ; } }
Plays the correct sound when enemy bullet is created, aka fired
Plays the correct sound when enemy bullet is created aka fired
/* Shooter/Biden fired */ /* BigShot fired */ /* Pea fired */ /* Torpedo fired */