aboutsummaryrefslogtreecommitdiff
path: root/bullets.lua
diff options
context:
space:
mode:
authorRibbon <ambiguousmachine@gmail.com>2022-02-10 23:45:45 -0800
committerRibbon <ambiguousmachine@gmail.com>2022-02-10 23:45:45 -0800
commit2debf09efb92513ef69bfdcf6120bf2d1a9725a7 (patch)
tree512ae3a2b876d10eadd8b1f557443949609b9586 /bullets.lua
parent7337bd189638c36f4c49f82c0833ef6afed998b5 (diff)
added laser kill sfx, arranged sfx into specific channels, and made the player kill sfx fire in co-op
now sounds shouldn't overlap, yay!
Diffstat (limited to 'bullets.lua')
-rw-r--r--bullets.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/bullets.lua b/bullets.lua
index 6d4337e..c7a47b0 100644
--- a/bullets.lua
+++ b/bullets.lua
@@ -91,7 +91,7 @@ function addlaser(x, y, r)
--collision detection after the warm up
if laser.timer > 1.5 and laser.timer < 3.6 then
if not laser.playingsound then
- sfx(24,1)
+ sfx(24,3)
laser.playingsound = true
end
shake = rnd(8)/laser.timer
@@ -103,7 +103,7 @@ function addlaser(x, y, r)
if laser.timer > 4 then
del(obj, laser)
sfx(24, -2)
- sfx(25)
+ sfx(25, 3)
for i = 1, 16, 1 do
addcircle(rnd(laser.x), laser.y-laser.r/2+rnd(laser.r), -0.5, -0.5, rnd(3), rnd(2), rnd({11,14,7}), 0)
end