Afredbilli commited on
Commit
699138f
·
verified ·
1 Parent(s): eae7330

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +86 -19
index.html CHANGED
@@ -1,19 +1,86 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>