[WIP] Lluita contra jefes

-- El viewport ja es fixa i es solta
-- L'escenari ja se modifica i se restaura
This commit is contained in:
2026-04-04 22:00:51 +02:00
parent 9bb372a70b
commit b2cb8698b4
6 changed files with 117 additions and 78 deletions

View File

@@ -146,7 +146,7 @@ function viewport_update()
vp_y = abad.y - vp_center_offset_y
if vp_y < 0 then vp_y = 0 end
viewp:position(vp_x, vp_y)
viewp:position(vp_x, vp_y)
end
function world_update()
@@ -310,6 +310,10 @@ function special_keys()
abad:move(abad_x, abad_y)
local scr_ax, scr_ay = viewp:screen_coords(abad_x, abad_y)
end
if key.press(key.N9) then
mapa_restore_backup()
viewp:free_move()
end
if key.press(key.N0) then
-- abad go to room
local abad_x, abad_y = coords.room_to_world ( 54, 6, 3 )