- [NEW] Alguns ajustos en habitacions

- [FIX] Càlcul del tile més robust
This commit is contained in:
Raimon @ quifisraimon committed 2026-09-30 12:58:48 +02:00
1 parent af2c8fb68d
commit 7b63f963b0
17 files changed
+38 -32

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ function gota_esguita(spr)
end
function ia.update_gota_caiguent(spr)
local tx, ty = (spr.pos.x+4)>>3, (spr.pos.y+4)>>3
local tx, ty = sprites.get_tile(spr.pos.x+4), sprites.get_tile(spr.pos.y+4)
if rooms.is_outside(tx,ty) then sprites.remove(spr) return end
@@ -49,7 +49,7 @@ function ia.update_gota_caiguent(spr)
end
function ia.update_gota_esguit(spr)
local tx, ty = (spr.pos.x+4)>>3, (spr.pos.y+4)>>3
local tx, ty = sprites.get_tile(spr.pos.x+4), sprites.get_tile(spr.pos.y+4)
if rooms.is_outside(tx,ty) then sprites.remove(spr) return end