home · contact · privacy
Fix square grid scrolling bug.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 13 Nov 2020 23:57:35 +0000 (00:57 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 13 Nov 2020 23:57:35 +0000 (00:57 +0100)
rogue_chat_curses.py
rogue_chat_nocanvas_monochrome.html

index 2207220dda4cf31f69a46c77e14683ff9cf5ca2c..3b110bae0b091dff9e8967f60fce7e8584961741 100755 (executable)
@@ -512,7 +512,7 @@ class TUI:
                     indent = 0 if indent else 1
             else:
                 for line in map_lines_split:
-                    map_lines += [' '.join(line)]
+                    map_lines += [''.join(line)]
             window_center = YX(int(self.size.y / 2),
                                int(self.window_width / 2))
             player = self.game.get_thing(self.game.player_id)
index 1f2ebe0dcd1865ba8b25e5329c55a9ce8e97aa71..4956cbdc3beccb39222fc26f571462cd4482c4a1 100644 (file)
@@ -36,8 +36,7 @@ toggle terrain/control view (from study mode): <input id="key_toggle_map_mode" t
 </div>
 <script>
 "use strict";
-//let websocket_location = "wss://plomlompom.com/rogue_chat/";
-let websocket_location = "ws://localhost:8000/";
+let websocket_location = "wss://plomlompom.com/rogue_chat/";
 
 let rows_selector = document.getElementById("n_rows");
 let cols_selector = document.getElementById("n_cols");
@@ -468,7 +467,7 @@ let tui = {
     let map_lines = []
     if (game.map_geometry == 'Square') {
         for (let line_split of map_lines_split) {
-            map_lines.push(line_split.join(' '));
+            map_lines.push(line_split.join(''));
         };
     } else if (game.map_geometry == 'Hex') {
         let indent = 0