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

@@ -2,6 +2,7 @@ Keybind = {}
Keybind.move = {}
Keybind.menu = {}
Keybind.debug = {}
Keybind.editor = {}
function Keybind:CheckDown(action)
for _, keyname in pairs(action.keys) do
@@ -63,6 +64,8 @@ function Keybind:Default()
Keybind.debug.reposition = { keys = {"f2"}}
Keybind.debug.reload = { keys = {"f3"}}
Keybind.debug.editor = { keys = {"f4"}}
-- Editor
Keybind.editor.palette = { keys = {"tab"}}
end
-- Set default values at start