Create Index.html
Browse files- Index.html +29 -0
Index.html
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
<!DOCTYPE html>
|
| 3 |
+
<html>
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 7 |
+
<title>Dragon Battle</title>
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
<div class="container">
|
| 12 |
+
<div class="header">
|
| 13 |
+
<h1>DRAGON BATTLE</h1>
|
| 14 |
+
<div id="status">Connecting...</div>
|
| 15 |
+
</div>
|
| 16 |
+
|
| 17 |
+
<canvas id="gameCanvas"></canvas>
|
| 18 |
+
|
| 19 |
+
<div class="controls">
|
| 20 |
+
<button id="up">↑</button>
|
| 21 |
+
<button id="left">←</button>
|
| 22 |
+
<button id="right">→</button>
|
| 23 |
+
<button id="down">↓</button>
|
| 24 |
+
</div>
|
| 25 |
+
</div>
|
| 26 |
+
|
| 27 |
+
<script src="game.js"></script>
|
| 28 |
+
</body>
|
| 29 |
+
</html>
|