- [NEW] [editor] borrar items amb hover + SUPR

- [WIP] treball en habitacions
- [NEW] [tiles] punxos
- [FIX] Ajustada la trajectòria de la bala
This commit is contained in:
2025-11-24 15:36:06 +01:00
parent e366209f46
commit ed4bcb3566
6 changed files with 9 additions and 3 deletions

View File

@@ -169,6 +169,12 @@ editor = {
editor.modified = true
end
end
if editor.item_hovered and key.press(key.DELETE) then
local sprite = sprites.list[editor.item_hovered]
map.surf(rooms.surf_items)
map.tile(sprite.pos.x//8,sprite.pos.y//8,0)
sprites.remove(sprite)
end
end
end,