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