Level exporting works!

This commit is contained in:
lustlion
2022-01-30 11:31:18 +01:00
parent 35c260d24f
commit a703af5e8d
6 changed files with 93 additions and 50 deletions

View File

@@ -13,6 +13,31 @@ function GameStep()
Camera:positionCenterAt(main_Player.pos.x, main_Player.pos.y)
--camera:positionAt(main_Player.pos.x, main_Player.pos.y,game.width,game.height)
end
if Keybind:HasPressed(Keybind.debug.debug) then
if debug then
debug = false
debug_collision = true
elseif debug_collision then
debug_collision = false
else
debug = true
end
end
if Keybind:HasPressed(Keybind.debug.reposition) then
if not editor_mode then
main_Player.pos.x, main_Player.pos.y = 16,-10
end
end
if Keybind:HasPressed(Keybind.debug.reload) then
LoadLevel()
end
if Keybind:HasPressed(Keybind.debug.editor) then
editor_mode = true
end
end
function GameDraw()