Added more sound effects.
This commit is contained in:
@@ -71,7 +71,7 @@ public class Player : MoveableSprite
|
||||
WeaponDef weaponDef = new()
|
||||
{
|
||||
Name = "Weapon 1",
|
||||
Bullet = BulletDefinitions.LaserLarge,
|
||||
Bullet = BulletDefinitions.ProtonLarge,
|
||||
Pattern = ShotPatterns.TripleSpread,
|
||||
FireSfxKey = ""
|
||||
};
|
||||
@@ -79,7 +79,7 @@ public class Player : MoveableSprite
|
||||
WeaponState weasponState = new()
|
||||
{
|
||||
FireThreshold = 15,
|
||||
SpeedMultiplier = 1,
|
||||
SpeedMultiplier = 1f,
|
||||
DamageBonus = 0
|
||||
};
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ public class ConfigurableWeapon(WeaponDef def, WeaponState state) : Weapon
|
||||
context.SpawnSprite(bullet);
|
||||
}
|
||||
|
||||
context.AudioManager.PlayPlayerFire(); // or use _def.FireSfxKey -> audio routing
|
||||
//context.AudioManager.PlayPlayerFire(); // or use _def.FireSfxKey -> audio routing
|
||||
context.AudioManager.PlayPlayerFire(def.Bullet.Kind);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user