bomb sound
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
-- version: 0.1
|
-- version: 0.1
|
||||||
-- script: lua
|
-- script: lua
|
||||||
|
|
||||||
-- luacheck: globals TIC btn btnp cls rect spr print exit
|
-- luacheck: globals TIC btn btnp cls rect spr print exit sfx
|
||||||
-- luacheck: max line length 150
|
-- luacheck: max line length 150
|
||||||
|
|
||||||
-- constants
|
-- constants
|
||||||
@@ -433,6 +433,7 @@ local function reset_player_entity(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function explode(bombX, bombY)
|
local function explode(bombX, bombY)
|
||||||
|
sfx(0, nil, 30) -- explosion sound, 30 ticks = 0.5 sec
|
||||||
table.insert(explosions, {x = bombX, y = bombY, timer = EXPLOSION_TIMER})
|
table.insert(explosions, {x = bombX, y = bombY, timer = EXPLOSION_TIMER})
|
||||||
|
|
||||||
local gridX = math.floor(bombX / TILE_SIZE) + 1
|
local gridX = math.floor(bombX / TILE_SIZE) + 1
|
||||||
@@ -709,7 +710,7 @@ end
|
|||||||
-- </WAVES>
|
-- </WAVES>
|
||||||
|
|
||||||
-- <SFX>
|
-- <SFX>
|
||||||
-- 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000
|
-- 000:f0e0d0c0b0a090807060504030201000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020500000
|
||||||
-- </SFX>
|
-- </SFX>
|
||||||
|
|
||||||
-- <TRACKS>
|
-- <TRACKS>
|
||||||
|
|||||||
Reference in New Issue
Block a user