Spaces:
Sleeping
Sleeping
Create templates/index.html
Browse files- templates/index.html +20 -0
templates/index.html
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>Dungeon Game</title>
|
6 |
+
<link rel="stylesheet" href="/static/styles.css"> <!-- Optional, add later -->
|
7 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.5.1/socket.io.js"></script>
|
8 |
+
</head>
|
9 |
+
<body>
|
10 |
+
<canvas id="gameCanvas" width="320" height="320"></canvas>
|
11 |
+
<div id="stats">
|
12 |
+
<p>Health: <span id="health">10</span></p>
|
13 |
+
<p>Attack: <span id="attack">2</span></p>
|
14 |
+
<p>Inventory: <span id="inventory"></span></p>
|
15 |
+
<button id="usePotion" disabled>Use Health Potion</button>
|
16 |
+
</div>
|
17 |
+
<div id="messages"></div>
|
18 |
+
<script src="/static/scripts.js"></script>
|
19 |
+
</body>
|
20 |
+
</html>
|