dungeon_game / templates /index.html
broadfield-dev's picture
Update templates/index.html
d0e1c37 verified
raw
history blame
798 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dungeon Game</title>
<link rel="stylesheet" href="/static/styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.5.1/socket.io.js"></script>
</head>
<body>
<div id="gameContainer">
<canvas id="gameCanvas" width="320" height="320"></canvas>
<div id="stats">
<p>Health: <span id="health">10</span></p>
<p>Attack: <span id="attack">2</span></p>
<p>Inventory: <span id="inventory"></span></p>
<p>Level: <span id="level">1</span></p>
<button id="usePotion" disabled>Use Health Potion</button>
</div>
<div id="messages"></div>
</div>
<script src="/static/scripts.js"></script>
</body>
</html>