File renaming

This commit is contained in:
2018-03-08 12:31:48 -05:00
parent c427ed563d
commit e349038569
2 changed files with 49 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ Launch
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Testing Testing
Visit http://localhost:3000/assignment3.html Visit http://localhost:3000/airhockey.html
To join the game, click "Join Game" and enter your name To join the game, click "Join Game" and enter your name
Once another player has joined from another browser window, Once another player has joined from another browser window,
the game will begin and puck will pick a random direction the game will begin and puck will pick a random direction
@@ -51,7 +51,7 @@ Testing
Organization: Organization:
app.js app.js
html html
assignment3.html airhockey.html
ding.mp3 ding.mp3
game.js game.js
hit.mp3 hit.mp3

47
html/airhockey.html Normal file
View File

@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<title>Air Hockey</title>
<script src="/socket.io/socket.io.js"></script>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" href="https://i.imgur.com/ZD92p8X.png">
</head>
<body>
<h1>Air Hockey</h1>
<table style="width:100%">
<tr>
<td>
<h2>Player 1</h2>
<h3 id="player1Name"></h3>
<h1 id="player1Score">0</h1>
</td>
<td width="1000px">
<div>
<canvas id='canvas1' class='canvas' width='1000' height='500'></canvas>
<input class="button" type="button" value="Toggle Sounds" onClick="toggleSound()">
<img id="soundstate" src="sound.png">
<input class="joinbutton button" type="button" value="Join Game" onClick="joinGame()">
<input class="leavebutton button" type="button" value="Leave Game" onclick="leaveGame()">
</div>
</td>
<td>
<h2>Player 2</h2>
<h3 id="player2Name"></h3>
<h1 id="player2Score">0</h1>
</td>
</tr>
<tr height="50px"></tr>
<tr>
<td></td>
<td width="1000px">
<h4>Spectators</h4>
<div id="spectator-area"></div>
</td>
<td></td>
</tr>
</table>
<script src='game.js'></script>
</body>
</html>