aboutsummaryrefslogtreecommitdiffstats
path: root/public/index.html
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2019-12-04 23:32:06 -0500
committerMatt Kohls <mattkohls13@gmail.com>2019-12-04 23:32:06 -0500
commit445013b6b675c6687af52d184a993c6567ed2975 (patch)
tree3f711081747ca964b91e4b1fb65695fafad0105b /public/index.html
parent418b89ccebdddd5bac995393a0d9945debaf0d7f (diff)
downloadrogue.js-445013b6b675c6687af52d184a993c6567ed2975.tar.gz
rogue.js-445013b6b675c6687af52d184a993c6567ed2975.tar.bz2
rogue.js-445013b6b675c6687af52d184a993c6567ed2975.zip
Client renders map, sends commands back to server
Diffstat (limited to 'public/index.html')
-rw-r--r--public/index.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/public/index.html b/public/index.html
index 39f2afc..e8adc13 100644
--- a/public/index.html
+++ b/public/index.html
@@ -13,11 +13,16 @@
<h1>rogue.js</h1>
</div>
<canvas id="gameboard" class="center" width="512" height="416"></canvas>
- <button id="joingame" type="button" title="Join Game">Join Game</button>
- <button id="leavegame" type="button" title="Leave Game">Leave Game</button>
- <button id="wsSendButton" type="button" title="Send WebSocket message">
- Send WebSocket message
- </button>
+ <div class="center">
+ <table class="center">
+ <tr><td><button id="joingame" type="button" title="Join Game">Join Game</button></td><td></td><td><button id="up">Up</button></td><td></td><td></td>
+ </tr>
+ <tr><td><button id="leavegame" type="button" title="Leave Game">Leave Game</button></td><td><button id="left">Left</button></td><td><button id="stairs">Stairs</button></td><td><button id="right">Right</button></td><td></td>
+ </tr>
+ <tr><td></td><td></td><td><button id="down">Down</button></td><td></td><td><button id="drink">Potion</button></td>
+ </tr>
+ </table>
+ </div>
<pre id="messages" style="height: 400px; overflow: scroll"></pre>
<footer><p>&copy; Matt Kohls, 2019</footer>
<script src="js/rogue.js"></script>