diff options
| author | troido <troido@hotmail.com> | 2018-01-01 16:55:58 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2018-01-01 16:55:58 +0100 |
| commit | 123edfd17cd9aa38d6d5e511a8c686d5d71ab140 (patch) | |
| tree | 0272a145ad0200d1405c345947d0a80559f5d269 /asciifarm/keybindings/vimbindings.hy | |
| parent | 38f3a3807373a19cacc0171dd7d5fd11f44dbd35 (diff) | |
made keybindings readable from an actual file
Diffstat (limited to 'asciifarm/keybindings/vimbindings.hy')
| -rw-r--r-- | asciifarm/keybindings/vimbindings.hy | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/asciifarm/keybindings/vimbindings.hy b/asciifarm/keybindings/vimbindings.hy new file mode 100644 index 0000000..00c1ae1 --- /dev/null +++ b/asciifarm/keybindings/vimbindings.hy @@ -0,0 +1,39 @@ + + +;; mainly intended as example for using different keybindings +"k" (input ["move" "north"]) +"j" (input ["move" "south"]) +"l" (input ["move" "east"]) +"h" (input ["move" "west"]) +"KEY_UP" (input ["move" "north"]) +"KEY_DOWN" (input ["move" "south"]) +"KEY_RIGHT" (input ["move" "east"]) +"KEY_LEFT" (input ["move" "west"]) +"g" (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" + |
