2022-06-23 05:44:57 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title></title>
|
|
|
|
<script type="text/javascript" src="socket.io.min.js"></script>
|
|
|
|
<link rel="stylesheet" href="style.css">
|
2022-06-24 18:42:39 +00:00
|
|
|
<script src='index.js' type="module"></script>
|
2022-06-23 05:44:57 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<!-- Canvas used to generate individual sprites off one sprite atlas -->
|
|
|
|
|
|
|
|
<canvas class="hidden" id="spriteJank" width=24 height=24></canvas>
|
|
|
|
<main>
|
|
|
|
<p id="message"></p>
|
|
|
|
<div id="game" style="display: none;">
|
|
|
|
<span id="leftBar">
|
|
|
|
<p id="status">Connection Status</p>
|
|
|
|
</span>
|
|
|
|
<span id="rightBar">
|
|
|
|
<div class="canvasContainer">
|
|
|
|
<canvas oncontextmenu="return false;" id="canvas" width=0 height=0></canvas>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="menu" id="menu">
|
|
|
|
<div id="joinType">
|
2022-06-24 12:10:06 +00:00
|
|
|
<h1>Join Game</h1>
|
|
|
|
<hr>
|
|
|
|
<div class="codeContainer">
|
|
|
|
<h3>Invited to a game? Enter the code into the box below and click 'join'</h3>
|
|
|
|
<input type="text" class="codeInput" id="joinGameCode" value="" placeholder="Enter Game Code"> <br>
|
|
|
|
<button type="button" class="codeButton" id="gotoJoin">Join Game</button>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<br><br>
|
|
|
|
<h1>Create New Game</h1>
|
|
|
|
<hr>
|
|
|
|
<div class="codeContainer">
|
|
|
|
<h3>To create a new game to play with your friends, click the 'Create Game' button below</h3>
|
|
|
|
<button type="button" id="gotoCreate">Create Game</button>
|
2022-06-23 05:44:57 +00:00
|
|
|
</div>
|
2022-06-24 12:10:06 +00:00
|
|
|
<hr>
|
|
|
|
</div>
|
2022-06-23 05:44:57 +00:00
|
|
|
<div id="joinGame" style="display: none;">
|
|
|
|
<input type="text" id="joinGameCode" value="">
|
2022-07-20 03:50:48 +00:00
|
|
|
<u>Color</u>
|
|
|
|
<div id="joinGameSelectColorBar"></div>
|
2022-06-24 12:10:06 +00:00
|
|
|
<input type="text" id="joinGameUsername" value="">
|
2022-06-23 05:44:57 +00:00
|
|
|
<button type="button" id="joinGameButton">Join</button>
|
|
|
|
</div>
|
2022-06-23 20:18:23 +00:00
|
|
|
<div id="createGame" style="display: none;">
|
2022-06-23 05:44:57 +00:00
|
|
|
<h2>Create Room</h2>
|
|
|
|
<hr>
|
|
|
|
<div class="leftRight">
|
|
|
|
<div class="left">
|
|
|
|
<h3>Settings</h3>
|
|
|
|
<div class="row">
|
|
|
|
<span>Username</span>
|
2022-06-24 12:10:06 +00:00
|
|
|
<input type="text" id="createGameUsername" value="" placeholder="Input Username">
|
2022-06-23 05:44:57 +00:00
|
|
|
</div>
|
|
|
|
<u>Color</u>
|
|
|
|
<div id="createGameSelectColorBar"></div>
|
|
|
|
<u>Mode</u>
|
|
|
|
<div id="createGameSelectModeBar"></div>
|
|
|
|
</div>
|
|
|
|
<span class="centerBar"></span>
|
|
|
|
<div class="right">
|
|
|
|
<h3>Game Settings</h3>
|
2022-06-24 12:10:06 +00:00
|
|
|
|
2022-06-23 05:44:57 +00:00
|
|
|
<div class="row">
|
|
|
|
<span>Percentage mines</span>
|
2022-06-23 19:27:36 +00:00
|
|
|
<div class="sliderContainer">
|
|
|
|
<div class="sliderNumber" id="createGameOptionsMinePercentIndicator"></div>
|
|
|
|
<input type="range" id="createGameOptionsMinePercent" min="0" max="1000" value="50" class="slider">
|
|
|
|
</div>
|
2022-06-23 05:44:57 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<span>Number of mines</span>
|
2022-06-24 12:10:06 +00:00
|
|
|
<input type="text" id="createGameOptionsMines" value="100">
|
2022-06-23 05:44:57 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<span>Minefield Width</span>
|
2022-06-24 12:10:06 +00:00
|
|
|
<input type="text" id="createGameOptionsWidth" value="32">
|
2022-06-23 05:44:57 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<span>Minefield Height</span>
|
2022-06-24 12:10:06 +00:00
|
|
|
<input type="text" id="createGameOptionsHeight" value="32">
|
2022-06-23 05:44:57 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<button type="button" id="createRoomButton">Start Game</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|