Spaces:
Running
Running
Update index.html
Browse files- index.html +86 -19
index.html
CHANGED
|
@@ -1,19 +1,86 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
|
| 7 |
+
<title>Viking — Medieval Combat</title>
|
| 8 |
+
|
| 9 |
+
<meta
|
| 10 |
+
name="description"
|
| 11 |
+
content="A browser-based 3D medieval combat game."
|
| 12 |
+
>
|
| 13 |
+
|
| 14 |
+
<link rel="stylesheet" href="./style.css">
|
| 15 |
+
|
| 16 |
+
<script type="importmap">
|
| 17 |
+
{
|
| 18 |
+
"imports": {
|
| 19 |
+
"three": "https://cdn.jsdelivr.net/npm/three@0.180.0/build/three.module.js",
|
| 20 |
+
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.180.0/examples/jsm/"
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
</script>
|
| 24 |
+
</head>
|
| 25 |
+
|
| 26 |
+
<body>
|
| 27 |
+
<main id="game">
|
| 28 |
+
<canvas id="game-canvas"></canvas>
|
| 29 |
+
|
| 30 |
+
<div id="loading-screen">
|
| 31 |
+
<div class="loading-content">
|
| 32 |
+
<h1>VIKING</h1>
|
| 33 |
+
<p>Preparing the battlefield...</p>
|
| 34 |
+
<div class="loading-bar">
|
| 35 |
+
<div id="loading-progress"></div>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
+
</div>
|
| 39 |
+
|
| 40 |
+
<div id="game-ui">
|
| 41 |
+
<header class="game-header">
|
| 42 |
+
<div class="game-title">
|
| 43 |
+
<span class="title-icon">ᚠ</span>
|
| 44 |
+
<div>
|
| 45 |
+
<h1>VIKING</h1>
|
| 46 |
+
<p>MEDIEVAL COMBAT</p>
|
| 47 |
+
</div>
|
| 48 |
+
</div>
|
| 49 |
+
|
| 50 |
+
<div id="status-indicator">
|
| 51 |
+
<span class="status-dot"></span>
|
| 52 |
+
<span id="status-text">INITIALIZING</span>
|
| 53 |
+
</div>
|
| 54 |
+
</header>
|
| 55 |
+
|
| 56 |
+
<div id="crosshair" aria-hidden="true">+</div>
|
| 57 |
+
|
| 58 |
+
<div id="combat-message" role="status"></div>
|
| 59 |
+
|
| 60 |
+
<div id="controls-hint">
|
| 61 |
+
<span>W A S D</span> MOVE
|
| 62 |
+
<span>SHIFT</span> RUN
|
| 63 |
+
<span>CLICK</span> ATTACK
|
| 64 |
+
</div>
|
| 65 |
+
|
| 66 |
+
<div id="mobile-controls">
|
| 67 |
+
<div id="movement-controls">
|
| 68 |
+
<button id="move-forward" aria-label="Move forward">▲</button>
|
| 69 |
+
<div class="movement-row">
|
| 70 |
+
<button id="move-left" aria-label="Move left">◀</button>
|
| 71 |
+
<button id="move-backward" aria-label="Move backward">▼</button>
|
| 72 |
+
<button id="move-right" aria-label="Move right">▶</button>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<div id="action-controls">
|
| 77 |
+
<button id="attack-button">SLASH</button>
|
| 78 |
+
<button id="block-button">BLOCK</button>
|
| 79 |
+
</div>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
</main>
|
| 83 |
+
|
| 84 |
+
<script type="module" src="./src/main.js"></script>
|
| 85 |
+
</body>
|
| 86 |
+
</html>
|