From 022272d3dcf01f87ced1a54991143ab40e1d9bf3 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Thu, 4 Dec 2025 12:02:19 +0100 Subject: [PATCH] bomb sound --- bomberman.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bomberman.lua b/bomberman.lua index 3d1180e..971719e 100644 --- a/bomberman.lua +++ b/bomberman.lua @@ -6,7 +6,7 @@ -- version: 0.1 -- 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 -- constants @@ -433,6 +433,7 @@ local function reset_player_entity(player) end 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}) local gridX = math.floor(bombX / TILE_SIZE) + 1 @@ -709,7 +710,7 @@ end -- -- --- 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000 +-- 000:f0e0d0c0b0a090807060504030201000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020500000 -- --