Spaces:
Running
Running
File size: 6,824 Bytes
e4c0247 9301efb a6d36b3 e4c0247 a6d36b3 26e2815 9301efb a6d36b3 9301efb 0d86eb7 9301efb 0d86eb7 9301efb 0d86eb7 a6d36b3 9301efb a6d36b3 9301efb a6d36b3 a7d011b 9301efb a6d36b3 0d86eb7 9301efb 975cece 9301efb 0d86eb7 9301efb 975cece 9301efb 975cece a7d011b 9301efb a7d011b 975cece 9301efb 975cece 9301efb 975cece 9301efb 975cece 9301efb 975cece a7d011b 9301efb a7d011b 9301efb a7d011b 9301efb a7d011b 9301efb a7d011b 9301efb a7d011b 9301efb a7d011b 9301efb 975cece 0d86eb7 e4c0247 9301efb 0d86eb7 a7d011b 975cece 26e2815 0d86eb7 a6d36b3 a7d011b 9301efb 975cece a7d011b 9301efb f104df5 a6d36b3 f104df5 0d86eb7 e4c0247 9301efb b01cf37 9301efb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
<!DOCTYPE html>
<html>
<head>
<title>Combat Helicopter Simulator</title>
<meta charset="utf-8">
<style>
body {
margin: 0;
overflow: hidden;
background: #000;
font-family: 'Courier New', monospace;
}
#cockpit-frame {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 20px solid #2a2a2a;
box-sizing: border-box;
pointer-events: none;
z-index: 1000;
}
#cockpit-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
pointer-events: none;
z-index: 999;
}
#info {
position: absolute;
top: 10px;
left: 10px;
color: #0f0;
background: rgba(0,20,0,0.7);
padding: 10px;
font-size: 14px;
z-index: 1001;
border: 1px solid #0f0;
border-radius: 5px;
user-select: none;
}
#timer {
position: absolute;
top: 10px;
right: 10px;
color: #0f0;
background: rgba(0,20,0,0.7);
padding: 10px;
font-size: 20px;
z-index: 1001;
border: 1px solid #0f0;
border-radius: 5px;
}
#crosshair {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 40px;
height: 40px;
border: 2px solid rgba(0,255,0,0.7);
border-radius: 50%;
z-index: 1001;
pointer-events: none;
}
#crosshair::before,
#crosshair::after {
content: '';
position: absolute;
background: rgba(0,255,0,0.7);
}
#crosshair::before {
top: 50%;
left: -10px;
right: -10px;
height: 2px;
transform: translateY(-50%);
}
#crosshair::after {
left: 50%;
top: -10px;
bottom: -10px;
width: 2px;
transform: translateX(-50%);
}
#healthBar {
position: absolute;
bottom: 20px;
left: 20px;
width: 400px;
height: 30px;
background: rgba(0,20,0,0.7);
border: 2px solid #0f0;
z-index: 1001;
border-radius: 15px;
overflow: hidden;
}
#health {
width: 100%;
height: 100%;
background: linear-gradient(90deg, #0f0, #00ff00);
transition: width 0.3s;
}
#ammo {
position: absolute;
bottom: 20px;
right: 20px;
color: #0f0;
background: rgba(0,20,0,0.7);
padding: 10px;
font-size: 20px;
z-index: 1001;
border: 1px solid #0f0;
border-radius: 5px;
}
#altitude-indicator,
#speed-indicator,
#compass {
position: fixed;
color: #0f0;
background: rgba(0,20,0,0.7);
padding: 10px;
border: 1px solid #0f0;
border-radius: 5px;
z-index: 1001;
}
#altitude-indicator {
left: 20px;
top: 50%;
}
#speed-indicator {
right: 20px;
top: 50%;
}
#compass {
top: 20px;
left: 50%;
transform: translateX(-50%);
}
#radar {
position: fixed;
bottom: 20px;
right: 20px;
width: 200px;
height: 200px;
background: rgba(0,20,0,0.7);
border: 2px solid #0f0;
border-radius: 50%;
z-index: 1001;
overflow: hidden;
}
.radar-sweep {
position: absolute;
top: 50%;
left: 50%;
width: 50%;
height: 2px;
background: linear-gradient(90deg, #0f0, transparent);
transform-origin: left center;
animation: radar-sweep 4s infinite linear;
}
.radar-dot {
position: absolute;
width: 4px;
height: 4px;
background: #f00;
border-radius: 50%;
transform: translate(-50%, -50%);
}
@keyframes radar-sweep {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
#stage {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #0f0;
background: rgba(0,20,0,0.8);
padding: 20px;
font-size: 32px;
z-index: 1001;
border-radius: 10px;
display: none;
}
#gameTimer {
position: absolute;
top: 60px;
right: 10px;
color: #0f0;
background: rgba(0,20,0,0.7);
padding: 10px;
font-size: 20px;
z-index: 1001;
border: 1px solid #0f0;
border-radius: 5px;
}
</style>
</head>
<body>
<div id="cockpit-frame"></div>
<div id="cockpit-overlay"></div>
<div id="info">
Click to start<br>
WASD - Move Helicopter<br>
Mouse - Aim<br>
Left Click - Shoot<br>
R - Reload
</div>
<div id="timer">Safe Time: 10s</div>
<div id="gameTimer">Time: 3:00</div>
<div id="crosshair"></div>
<div id="healthBar"><div id="health"></div></div>
<div id="ammo">Ammo: 30/30</div>
<div id="stage">Stage 1</div>
<div id="altitude-indicator">ALT: <span>50</span>m</div>
<div id="speed-indicator">SPD: <span>0</span>km/h</div>
<div id="compass">HDG: <span>0</span>ยฐ</div>
<div id="radar">
<div class="radar-sweep"></div>
<div class="radar-targets"></div>
</div>
<!-- index.html์ script ๋ถ๋ถ ์์ -->
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.157.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.157.0/examples/jsm/"
}
}
</script>
<script type="module" src="game.js"></script>
<script type="module">
// [์ด์ ์ ์ ๊ณต๋ JavaScript ์ฝ๋๋ฅผ ์ฌ๊ธฐ์ ์ฝ์
]
</script>
</body>
</html> |