From: Christian Heller Date: Thu, 29 Oct 2020 02:18:33 +0000 (+0100) Subject: Improve command keys, mode messages. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks?a=commitdiff_plain;h=792dad961acda233d4a952fa8fabef9766f9dbc4;p=plomrogue2-experiments Improve command keys, mode messages. --- diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index 6508796..3694675 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -172,11 +172,11 @@ class Mode { } let mode_waiting_for_server = new Mode('waiting_for_server', false, false, true); let mode_login = new Mode('login', true, false, true); -let mode_chat = new Mode('chat', true, false); -let mode_annotate = new Mode('annotate', true, true); -let mode_play = new Mode('play', false, false); -let mode_study = new Mode('study', false, true); -let mode_edit = new Mode('edit', false, false); +let mode_chat = new Mode('chat / write messages to players', true, false); +let mode_annotate = new Mode('add message to map tile', true, true); +let mode_play = new Mode('play / move around', false, false); +let mode_study = new Mode('check map tiles for messages', false, true); +let mode_edit = new Mode('write ASCII char to map tile', false, false); let tui = { mode: mode_waiting_for_server, @@ -279,7 +279,7 @@ let tui = { this.log_msg(" f - flatten surroundings"); this.log_msg(" ? - switch to study mode"); this.log_msg("commands specific to study mode:"); - this.log_msg(" A - annotate terrain"); + this.log_msg(" e - annotate terrain"); this.log_msg(" p - switch to play mode"); this.log_msg(""); }, @@ -564,7 +564,7 @@ document.addEventListener('keydown', (event) => { explorer.move('up'); } else if (event.key === 's') { explorer.move('down'); - } else if (event.key === 'A') { + } else if (event.key === 'e') { tui.switch_mode(mode_annotate); }; }