ability to move spawns in editor

This commit is contained in:
lustlion
2022-03-10 10:48:10 +01:00
parent 39b65571a0
commit 93bfe0bda4
2 changed files with 26 additions and 11 deletions

View File

@@ -115,6 +115,7 @@ function stepEditor()
if Keybind:checkPressed(Keybind.debug.editor) then
editor_mode = not editor_mode
deselectSpawns()
createTileObjects()
end
end
@@ -216,8 +217,12 @@ function doEditorEdit()
reloadLevelTiles()
else
if Keybind:checkDown(Keybind.generic.lclick) then
deselectSpawns()
selectSpawns(mouse_x,mouse_y)
end
if Keybind:checkDown(Keybind.generic.rclick) then
moveSpawns(mouse_x,mouse_y)
end
end
elseif Keybind:checkPressed(Keybind.generic.lshift) then
expandLevelCanvas(math.sign(expand_h),math.sign(expand_v))