From b88a868557e93aa02d8f9bdb4037c20d67d86798 Mon Sep 17 00:00:00 2001 From: James Turk Date: Tue, 25 Apr 2023 04:09:32 -0500 Subject: [PATCH] sfx --- games/boybomb.p8 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/games/boybomb.p8 b/games/boybomb.p8 index 0013990..d121a62 100644 --- a/games/boybomb.p8 +++ b/games/boybomb.p8 @@ -159,9 +159,10 @@ end particles = {} function add_explosion(gx, gy) + sfx(0) local x = gx*8+4 local y = gy*8+4 - for i=0,50 do + for i=0,30 do local angle = rnd() add(particles, { x=x, y=y, @@ -274,6 +275,7 @@ function update_level() then puzzle_grid[y+1][x] = puzzle_grid[y][x] puzzle_grid[y][x] = 0 + sfx(1) -- crushed, explode if y+1 == bomb_y and x == bomb_x then explode() @@ -502,3 +504,6 @@ e0e1e1e1e1e1e1e1e1e2e3e4e4e4e4e5000000000000000000000000000000000000000000000000 c3c4c4c4c4c4c4c4c4c4c4c4c4c4c4c500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 d3d4d4d4d4d4d4d4d4d4d4d4d4d400d500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 e3e4e4e4e4e4e4e4e4e4e4e4e4e4e4e500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +__sfx__ +490200003465028650216501c6501865016650166501665017650186501b6502065024650296502d6502e6502d6602b66026660236601f6601b66017660146600e6600b6600966008660176600d6700767006670 +390100000265002650026500265002650026500265002650026500265002650006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600006000060000600