summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorarngo <[email protected]>2021-12-26 23:04:51 -0500
committerarngo <[email protected]>2021-12-26 23:04:51 -0500
commite61ba8cc576465f2c01283bfad1c0eb452e34769 (patch)
treead5406d76c7f893c6a58dd7e7161b6a6425c3419
parent73d33929c11307f2589413a3901b574ccdc2a449 (diff)
downloadSteelWings-e61ba8cc576465f2c01283bfad1c0eb452e34769.tar.gz
SteelWings-e61ba8cc576465f2c01283bfad1c0eb452e34769.zip
add shooting sounds
-rw-r--r--app/systems/player_weapon.rb1
-rw-r--r--sounds/shoot.mp3bin0 -> 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
new file mode 100644
index 0000000..33be5cd
--- /dev/null
+++ b/sounds/shoot.mp3
Binary files differ