Spaces:
Running
Running
cutechicken
commited on
Commit
•
8d7fbfa
1
Parent(s):
790485c
Update index.html
Browse files- index.html +21 -1
index.html
CHANGED
@@ -12,7 +12,26 @@
|
|
12 |
background: #000;
|
13 |
font-family: 'Courier New', monospace;
|
14 |
}
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
#loading {
|
17 |
position: fixed;
|
18 |
top: 50%;
|
@@ -315,6 +334,7 @@
|
|
315 |
<div id="time">Time: 180s</div>
|
316 |
</div>
|
317 |
<div id="crosshair"></div>
|
|
|
318 |
|
319 |
<!-- 체력바 -->
|
320 |
<div id="healthBar">
|
|
|
12 |
background: #000;
|
13 |
font-family: 'Courier New', monospace;
|
14 |
}
|
15 |
+
#enemyLabels {
|
16 |
+
position: absolute;
|
17 |
+
top: 0;
|
18 |
+
left: 0;
|
19 |
+
width: 100%;
|
20 |
+
height: 100%;
|
21 |
+
pointer-events: none;
|
22 |
+
}
|
23 |
+
|
24 |
+
.enemy-label {
|
25 |
+
position: absolute;
|
26 |
+
background-color: rgba(255, 0, 0, 0.7);
|
27 |
+
color: white;
|
28 |
+
padding: 2px 6px;
|
29 |
+
border-radius: 3px;
|
30 |
+
font-size: 12px;
|
31 |
+
font-family: Arial, sans-serif;
|
32 |
+
transform: translate(-50%, -50%);
|
33 |
+
white-space: nowrap;
|
34 |
+
}
|
35 |
#loading {
|
36 |
position: fixed;
|
37 |
top: 50%;
|
|
|
334 |
<div id="time">Time: 180s</div>
|
335 |
</div>
|
336 |
<div id="crosshair"></div>
|
337 |
+
<div id="enemyLabels"></div>
|
338 |
|
339 |
<!-- 체력바 -->
|
340 |
<div id="healthBar">
|