diff --git a/right_coin.lua b/right_coin.lua index 5d45019..77d7b6a 100644 --- a/right_coin.lua +++ b/right_coin.lua @@ -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 -- -- --- 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000 +-- 000:0040004000a000a000f000f010f020f030f040f050f060f070f080f090f0a0f0b0f0c0f0d0f0e0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0400000000000 -- --