Sliced game loop into game, gameworld and editor. added editor keybind for palette.

This commit is contained in:
lustlion
2022-01-19 16:13:13 +01:00
parent 0706d76b57
commit 2b323fff8f
6 changed files with 136 additions and 142 deletions

View File

@@ -106,9 +106,9 @@ function love.update(dt)
--editor
if editor_mode then
stepEditor()
EditorStep()
else
stepGame()
GameStep()
end
end
@@ -134,9 +134,9 @@ function love.draw()
end
if editor_mode then
drawEditor()
EditorDraw()
else
drawGame()
GameDraw()
end
love.graphics.print(arrow,10,40)
end