home · contact · privacy
Fix buggy study mode movement mappings.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 29 Oct 2020 03:16:42 +0000 (04:16 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 29 Oct 2020 03:16:42 +0000 (04:16 +0100)
new2/rogue_chat_nocanvas_monochrome.html

index 09d400d8ca5c78eb6536fc042ffb10cf42de0a31..3219896b453c03cd57ce9d168769d5c6d892b569 100644 (file)
@@ -580,15 +580,15 @@ document.addEventListener('keydown', (event) => {
             tui.switch_mode(mode_chat);
         } else if (event.key == 'p') {
             tui.switch_mode(mode_play);
-        } else if (event.key === 'a') {
-             explorer.move('left');
         } else if (event.key === tui.key_left) {
-             explorer.move('right');
+             explorer.move('left');
         } else if (event.key === tui.key_right) {
-             explorer.move('up');
+             explorer.move('right');
         } else if (event.key === tui.key_up) {
-             explorer.move('down');
+             explorer.move('up');
         } else if (event.key === tui.key_down) {
+             explorer.move('down');
+        } else if (event.key === 'e') {
           tui.switch_mode(mode_annotate);
         };
     }