diff options
| -rw-r--r-- | app/systems/player_weapon.rb | 1 | ||||
| -rw-r--r-- | sounds/shoot.mp3 | bin | 0 -> 40750 bytes |
2 files changed, 1 insertions, 0 deletions
diff --git a/app/systems/player_weapon.rb b/app/systems/player_weapon.rb index 9cb4df0..e16570c 100644 --- a/app/systems/player_weapon.rb +++ b/app/systems/player_weapon.rb @@ -13,6 +13,7 @@ FF::Scn::BoidRules.add( bullet = Factory::Bullet.new(damage: weapon.damage, vx: (boid.vx/mag) * weapon.speed, vy: (boid.vy/mag) * weapon.speed, x: boid.x, y: boid.y) bullet.remove(bullet.components[FF::Cmp::Team][0]) bullet.add(FF::Cmp::Team.new(team: 'player')) + $gtk.args.gtk.queue_sound "sounds/shoot.mp3" end end end diff --git a/sounds/shoot.mp3 b/sounds/shoot.mp3 Binary files differnew file mode 100644 index 0000000..33be5cd --- /dev/null +++ b/sounds/shoot.mp3 |
