Add drag painting to level editor

This commit is contained in:
Your Name 2026-08-11 14:11:57 -04:00
parent fa0bada313
commit c3f5aafd77
6 changed files with 934 additions and 66 deletions

View file

@ -190,12 +190,17 @@ function love.keypressed(key)
end
function love.mousepressed(x, y, button)
if editorView == "room" and button == 2 then
currentRoom:attemptDelete(x, y, selectedColor)
end
editorMouseHandler(x, y, button)
end
function love.mousemoved(x, y)
editorMouseMoved(x, y)
end
function love.mousereleased(x, y, button)
editorMouseReleased(x, y, button)
end
function love.textinput(t)
response = response .. t
editorTextHandler(response)