]> git.cworth.org Git - lmno.games/commitdiff
empires: Simply game for to require only a character name
authorCarl Worth <cworth@cworth.org>
Sat, 23 May 2020 17:42:40 +0000 (10:42 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 23 May 2020 17:42:40 +0000 (10:42 -0700)
Since the palyer's own nickname is now requested earlier (when first
joining the game).

This will hopefully be less confusing for players (who were sometimes
confused about which name was which).

empires/game.html
empires/game.js

index d3be569162c0dd5e5c180cf44a583f0d104a4183..c901f5fc20d8573182e34d747ed26e85d93fd271 100644 (file)
@@ -35,9 +35,9 @@
       <div id="message-area">
       </div>
 
-      <div id="loading" class="show-state-none">
-        <h1>The Game of Empires</h1>
+      <h1>The Game of Empires</h1>
 
+      <div id="loading" class="show-state-none">
         <p>
           Contacting server. Please wait...
         </p>
 
       <div id="pre-game" class="show-state-join">
 
-        <h1>The Game of Empires</h1>
+        <h2>Choose your character</h2>
 
         <p>
-          To join the game, type your own name below. Also, choose the
-          name of a character that you want to play as. This can be
-          anyone (real or fictional) that everyone playing the game
-          would be likely to know, (for example "Albert Einstein" or
-          "Harry Potter").
+          This can be anyone (real or fictional), but should be
+          someone that all players of the game are familiar with.
         </p>
 
         <p>
-          Note: After you have joined the game, another player can use
-          this same device to join the game as well.
+          Hint: Choosing an ideal character name is the key to doing
+          well in Empires. You definitely don't want a character that
+          everyone will know that only you would have chosen.
         </p>
 
         <!-- The return false prevents the page from being reloaded -->
         <form id="register-form" onsubmit="register(this); return false">
-          <div class="form-field medium left">
-            <label for="name">Your name</label>
-            <input type="text" id="name" required>
-          </div>
-
-          <div class="form-field medium right">
+          <div class="form-field large">
             <label for="character">Character name</label>
             <input type="text" id="character" autocomplete="off" required>
           </div>
 
           <div class="form-field large">
             <button type="submit">
-              Join game
+              Choose character
             </button>
           </div>
         </form>
index d3d34949cdf87fe1875893939962b600f527b11d..746cdfdc943d37d55c6d0f6fb6ce3f8315407a42 100644 (file)
@@ -17,7 +17,6 @@ function register(form) {
   request.open("POST", "register");
   request.setRequestHeader("Content-Type", "application/json; charset=UTF-8");
   var data = {
-    "name": form.name.value,
     "character": form.character.value
   };
   request.send(JSON.stringify(data));