Sliced game loop into game, gameworld and editor. added editor keybind for palette.
This commit is contained in:
8
main.lua
8
main.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user