add coin sound effect

This commit is contained in:
Fabien Freling 2019-04-28 17:32:06 +02:00
parent 6c4d17f06a
commit 62b28964ca

View file

@ -213,6 +213,7 @@ do -- Player
function Player:collectCoin()
for i,v in pairs(coins) do
if hitTest(self, v) then
sfx(0)
table.remove(coins,i)
if v.color == "blue" then coinBlue=coinBlue+1
elseif v.color == "red" then coinRed=coinRed+1
@ -559,7 +560,7 @@ end
-- </WAVES>
-- <SFX>
-- 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000
-- 000:0040004000a000a000f000f010f020f030f040f050f060f070f080f090f0a0f0b0f0c0f0d0f0e0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0400000000000
-- </SFX>
-- <PALETTE>