home · contact · privacy
Only draw new game content on tick completion.
[plomrogue2-experiments] / new2 / rogue_chat.html
index dde77beb49459827ca7f40cce210b45d6257ccad..cefc451dabcbfbbeca91cdc0ed533926ae9ab52a 100644 (file)
@@ -176,10 +176,11 @@ websocket.onmessage = function (event) {
   if (tokens[0] === 'TURN') {
     game.things = {}
     game.tick = parseInt(tokens[1]);
-    tui.draw_tick_line();
-    tui.draw_map();
   } else if (tokens[0] === 'THING_POS') {
     game.things[tokens[1]] = parser.parse_position(tokens[2]); 
+  } else if (tokens[0] === 'GAME_STATE_COMPLETE') {
+    tui.draw_tick_line();
+    tui.draw_map();
     tui.draw_map();
   } else if (tokens[0] === 'LOG') {
      tui.log_msg(' ' + tokens[1]);