home · contact · privacy
Use default player_id that cannot be mixed up.
[plomrogue2-experiments] / new2 / rogue_chat_nocanvas_monochrome.html
index 89e40254c7080af9f0dba488787f860cda4c253e..2c196d4ad4e1ae2ffa76847e6c09ee9815d19498 100644 (file)
@@ -12,7 +12,7 @@ rows: <input id="n_rows" type="number" step=2 min=10 value=24 />
 cols: <input id="n_cols" type="number" step=4 min=20 value=80 />
 </div>
 <pre id="terminal" style="display: inline-block;"></pre>
-<textarea id="input" style="opacity: 1; width: 10px;"></textarea>
+<textarea id="input" style="opacity: 0; width: 0px;"></textarea>
 <script>
 "use strict";
 let websocket_location = "ws://localhost:8000";
@@ -371,7 +371,7 @@ let game = {
   turn: 0,
   map: "",
   map_size: [0,0],
-  player_id: 0
+  player_id: -1
 }
 
 terminal.initialize();