-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (41 loc) · 1.92 KB
/
index.html
File metadata and controls
51 lines (41 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>MazeRTC</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="stylesheet" href="style.css">
</head>
<body>
<canvas id="gameCanvas" width="1280" height="1024"></canvas>
<div id="buttons">
<img class="logo" src="img/logo.png" />
<button id="startButton" class="button">Start Game</button>
<!-- <button id="continueButton" class="button" style="display: none;">Continue Game</button> -->
<button id="editorButton" class="button">Map editor</button>
<button id="hostButton" class="button">Host Game</button>
<button id="joinButton" class="button">Join Game</button>
</div>
<!-- WebRTC Connection Panel -->
<div id="connectionPanel" style="display: none;">
<img class="logo" src="img/logo.png" />
<input type="text" id="roomInput" placeholder="Enter room name..." />
<div id="roomStatus"></div>
<div id="connectionStatus">
<strong>Status:</strong> <span id="statusText">Not connected</span>
</div>
<button class="button" id="joinRoomButton">Join Room</button>
<button class="button" id="startGameButton">Start Game</button>
<button class="button" id="closeConnectionPanelButton">Close</button>
</div>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="client/signaling.js"></script>
<script src="client/webrtc.js"></script>
<script src="levels.js"></script>
<script src="game.js"></script>
</body>
</html>