remapped debug controls and made them changeable

This commit is contained in:
bizcochito
2022-01-19 13:28:09 +01:00
parent a183dac913
commit 9c89a970ed
2 changed files with 49 additions and 42 deletions

View File

@@ -1,6 +1,7 @@
Keybind = {}
Keybind.move = {}
Keybind.menu = {}
Keybing.debug = {}
function Keybind:Check(action)
for _, keyname in pairs(action) do
@@ -35,6 +36,9 @@ function Keybind:Remove(action)
end
function Keybind:Default()
--Menu
Keybind.menu.menu = {"escape"}
--Move
Keybind.move.left = {"left", "a"}
Keybind.move.right = {"right", "d"}
Keybind.move.up = {"up", "w"}
@@ -42,6 +46,11 @@ function Keybind:Default()
Keybind.move.jump = {"z", "space"}
Keybind.move.attack = {"x", 1}
Keybind.move.dash = {"c", 2}
--Debug
Keybind.debug.debug = {"f1"}
Keybind.debug.reposition = {"f2"}
Keybind.debug.reload = {"f3"}
Keybind.debug.editor = {"f4"}
end
-- Set default values at start