fix ending
This commit is contained in:
parent
18906ce575
commit
bc5579b318
@ -62,7 +62,7 @@ function draw_title()
|
||||
end
|
||||
|
||||
function update_title()
|
||||
if scene_time() > 15 or btnp(4) then
|
||||
if scene_time() > 15 or btnp(❎) then
|
||||
start_level(1)
|
||||
end
|
||||
end
|
||||
@ -107,7 +107,7 @@ function draw_explainer()
|
||||
print("a bomb", 70, 118, bcolor)
|
||||
end
|
||||
|
||||
if st > 15 or btnp(4) then
|
||||
if st > 15 or btnp(❎) then
|
||||
start_scene("title")
|
||||
end
|
||||
|
||||
@ -194,6 +194,10 @@ levels = {
|
||||
},
|
||||
}
|
||||
function start_level(n)
|
||||
if n > #levels then
|
||||
start_scene("ending")
|
||||
return
|
||||
end
|
||||
start_scene("level")
|
||||
last_gravity = t()
|
||||
level_dets = 0
|
||||
@ -458,7 +462,7 @@ function update_level()
|
||||
bomb_y += 1
|
||||
end
|
||||
|
||||
-- DEBUG LEVEL SELECT
|
||||
--DEBUG LEVEL SELECT
|
||||
-- if btnp(⬇️) then
|
||||
-- level_num = max(level_num-1, 1)
|
||||
-- start_level(level_num)
|
||||
|
Loading…
Reference in New Issue
Block a user