[WIP] Lluita contra jefes. Càrrega de fase redefinida
This commit is contained in:
@@ -123,6 +123,7 @@ function render_map( sf_map, sf_tiles, x, y, target )
|
||||
view.origin(0,0)
|
||||
end
|
||||
|
||||
|
||||
function load_stage()
|
||||
local stage_init = stages["stage"..stage.."_init"]
|
||||
if stage_init then
|
||||
@@ -134,6 +135,18 @@ function load_stage()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function load_boss_stage()
|
||||
local stage_boss = stages["stage"..stage.."_boss"]
|
||||
if stage_boss and not scene_running and not stages.loaded_boss then
|
||||
stage_boss()
|
||||
print("Stage "..stage.." Boss loaded")
|
||||
else
|
||||
print("No se ha cargado la fase "..stage)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function viewport_update()
|
||||
-- Moure el viewport
|
||||
local vp_x = viewp.x
|
||||
@@ -204,6 +217,7 @@ end
|
||||
|
||||
function update_game()
|
||||
if stage~=stage_loaded then load_stage() end
|
||||
if stages.boss_ready and not stages.boss_loaded then load_boss_stage() end
|
||||
|
||||
surf.target(0)
|
||||
surf.cls(16)
|
||||
|
||||
Reference in New Issue
Block a user