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