- [NEW] Es pot triar habitació des del minimapa

- [NEW] Habitacions de l'última zona perfilades
This commit is contained in:
raimon@prometeo committed 2026-10-02 23:53:34 +02:00
1 parent 8a770de885
commit 335d41ded3
4 files changed
+12 -3

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

+12 -3
View File
@@ -385,11 +385,20 @@ editor = {
surf.target(surf.SCREEN) surf.target(surf.SCREEN)
draw.surf(0,0,160,104,0,0) draw.surf(0,0,160,104,0,0)
local x = (rooms.pos.x//20)*20 local x = (rooms.pos.x)--//20)*20
local y = (rooms.pos.y//13)*13 local y = (rooms.pos.y)--//13)*13
draw.rect(x, y, 20, 13, 68) draw.rect(x, y, 20, 13, 68)
if not key.down(key.GRAVE) then local mx,my = mouse.pos()
mx,my = (mx//20)*20, (my//13)*13
draw.rect(mx, my, 20, 13, 23)
if mouse.press(mouse.LEFT) then
rooms.pos.x, rooms.pos.y = mx, my
editor.mapviewer.close()
end
if key.press(key.ESCAPE) or key.press(key.GRAVE) then
editor.mapviewer.close() editor.mapviewer.close()
end end
end end