[WIP] Lluita contra jefes

This commit is contained in:
2026-04-04 20:45:14 +02:00
parent 205586cc77
commit 9bb372a70b
6 changed files with 209 additions and 112 deletions

View File

@@ -86,6 +86,18 @@ function coords.room_to_coord ( room, center )
return x, y
end
function coords.room_to_mini_tile( room, x, y )
-- room=room-1
x=x-1
y=y-1
local tx = room % coords.ROOMS_PER_FLOOR -- columna de l'habitació
tx = tx * coords.ROOM_COLS+x
local ty = math.floor(room / coords.ROOMS_PER_FLOOR) -- fila de l'habitació
ty = ty * coords.ROOM_ROWS+y
return tx, ty
end
-- local TILE_W = arcade_config.tiles_width
-- local TILE_H = arcade_config.tiles_height
-- local ROOM_COLS = mapa_room_cols