Factoritzades funcions per a conversió de coordenades.

[NEW] Tiles animats
This commit is contained in:
2026-03-28 21:08:45 +01:00
parent 639d2e98ad
commit ac9fcebca9
15 changed files with 393 additions and 201 deletions

View File

@@ -9,7 +9,7 @@ bol_gif_row = 3
bol={hab=39,x=4,y=3,w=32,h=16,bb={x=0,y=0,w=16,h=8}}
function bol.init()
local world_x, world_y = arc_mapa_get_coords(bol.hab,bol.x,bol.y)
local world_x, world_y = coords.room_to_world(bol.hab,bol.x,bol.y)
bol.x=world_x-8
bol.y=world_y+2
bol.update=bol.update