[WIP] Lluita contra jefes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user