diff --git a/games/boybomb.p8 b/games/boybomb.p8 index dec232b..d366dd9 100644 --- a/games/boybomb.p8 +++ b/games/boybomb.p8 @@ -168,6 +168,7 @@ function start_level(n) last_gravity = t() exploding = false + level_num = n level = levels[n] puzzle_grid = {} for y=1,GRID_H do @@ -363,6 +364,17 @@ function update_level() if btnp(❎) then explode() end + + -- DEBUG LEVEL SELECT + if btnp(⬇️) then + level_num = max(level_num-1, 1) + start_level(level_num) + end + if btnp(⬆️) then + level_num = min(level_num+1, #levels) + start_level(level_num) + end + -- fall immediately if bomb_y < GRID_H and puzzle_grid[bomb_y+1][bomb_x] == 0 then bomb_y += 1