From 123edfd17cd9aa38d6d5e511a8c686d5d71ab140 Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 1 Jan 2018 16:55:58 +0100 Subject: made keybindings readable from an actual file --- asciifarm/keybindings/keybindings.hy | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 asciifarm/keybindings/keybindings.hy (limited to 'asciifarm/keybindings/keybindings.hy') diff --git a/asciifarm/keybindings/keybindings.hy b/asciifarm/keybindings/keybindings.hy new file mode 100644 index 0000000..e6dac86 --- /dev/null +++ b/asciifarm/keybindings/keybindings.hy @@ -0,0 +1,37 @@ + +"w" (input ["move" "north"]) +"s" (input ["move" "south"]) +"d" (input ["move" "east"]) +"a" (input ["move" "west"]) +"KEY_UP" (input ["move" "north"]) +"KEY_DOWN" (input ["move" "south"]) +"KEY_RIGHT" (input ["move" "east"]) +"KEY_LEFT" (input ["move" "west"]) +"e" (input ["take" (selectorvalue "ground")]) +"q" (input ["drop" (selectorvalue "inventory")]) +"E" (input ["use" (selectorvalue "inventory")]) +"r" (input ["interact" (selectorvalue "ground")]) +"v" (fn [client] (.select (selector "inventory") 1 True True)) +"c" (fn [client] (.select (selector "ground") 1 True True)) +"x" (fn [client] (.select (selector "equipment") 1 True True)) +"z" (input ["unequip" (selectorvalue "equipment")]) +"f" (doall [ + (input ["attack"]) + (input ["attack" "north"]) + (input ["attack" "south"]) + (input ["attack" "east"]) + (input ["attack" "west"])]) +"t" (fn [client] (client.readString)) +"help" "\ +Controls: + wasd or arrows: + Move around + e: Grab + q: Drop + E: Use + r: Interact + f: Attack + t: Chat + z: Unequip + xcv: scroll" + -- cgit