Add drag painting to level editor
This commit is contained in:
parent
fa0bada313
commit
c3f5aafd77
6 changed files with 934 additions and 66 deletions
11
main.lua
11
main.lua
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue