Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +1591 -19
- prompts.txt +3 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: robofarm-showdown
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,1591 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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=device-width, initial-scale=1.0">
|
| 6 |
+
<title>RoboFarm Showdown | Futuristic Farming Strategy Game</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rubik:wght@300;400;500;600;700&display=swap');
|
| 11 |
+
|
| 12 |
+
:root {
|
| 13 |
+
--primary: #00ff88;
|
| 14 |
+
--secondary: #00b8ff;
|
| 15 |
+
--accent: #ff00e4;
|
| 16 |
+
--dark: #0a0a1a;
|
| 17 |
+
--darker: #050510;
|
| 18 |
+
--light: #f0f8ff;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
body {
|
| 22 |
+
font-family: 'Rubik', sans-serif;
|
| 23 |
+
background-color: var(--dark);
|
| 24 |
+
color: var(--light);
|
| 25 |
+
overflow: hidden;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.font-orbitron {
|
| 29 |
+
font-family: 'Orbitron', sans-serif;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.neon-text {
|
| 33 |
+
text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.neon-secondary {
|
| 37 |
+
text-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary);
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.neon-accent {
|
| 41 |
+
text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.glow-box {
|
| 45 |
+
box-shadow: 0 0 10px var(--primary);
|
| 46 |
+
border: 1px solid rgba(0, 255, 136, 0.3);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.glow-box-secondary {
|
| 50 |
+
box-shadow: 0 0 10px var(--secondary);
|
| 51 |
+
border: 1px solid rgba(0, 184, 255, 0.3);
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.glow-box-accent {
|
| 55 |
+
box-shadow: 0 0 10px var(--accent);
|
| 56 |
+
border: 1px solid rgba(255, 0, 228, 0.3);
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
.holographic-bg {
|
| 60 |
+
background: linear-gradient(135deg, rgba(10, 10, 26, 0.9) 0%, rgba(5, 5, 16, 0.95) 100%);
|
| 61 |
+
backdrop-filter: blur(10px);
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
@keyframes pulse {
|
| 65 |
+
0%, 100% { opacity: 1; }
|
| 66 |
+
50% { opacity: 0.6; }
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
@keyframes float {
|
| 70 |
+
0%, 100% { transform: translateY(0); }
|
| 71 |
+
50% { transform: translateY(-5px); }
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
@keyframes scanline {
|
| 75 |
+
0% { background-position: 0 0; }
|
| 76 |
+
100% { background-position: 0 20px; }
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.scanlines {
|
| 80 |
+
position: relative;
|
| 81 |
+
overflow: hidden;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
.scanlines::after {
|
| 85 |
+
content: "";
|
| 86 |
+
position: absolute;
|
| 87 |
+
top: 0;
|
| 88 |
+
left: 0;
|
| 89 |
+
right: 0;
|
| 90 |
+
bottom: 0;
|
| 91 |
+
background: linear-gradient(
|
| 92 |
+
to bottom,
|
| 93 |
+
transparent 0%,
|
| 94 |
+
rgba(0, 255, 136, 0.05) 50%,
|
| 95 |
+
transparent 100%
|
| 96 |
+
);
|
| 97 |
+
background-size: 100% 4px;
|
| 98 |
+
animation: scanline 1s linear infinite;
|
| 99 |
+
pointer-events: none;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.animate-pulse {
|
| 103 |
+
animation: pulse 2s infinite;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.animate-float {
|
| 107 |
+
animation: float 3s ease-in-out infinite;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
.tile {
|
| 111 |
+
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
| 112 |
+
position: relative;
|
| 113 |
+
overflow: hidden;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
.tile::before {
|
| 117 |
+
content: "";
|
| 118 |
+
position: absolute;
|
| 119 |
+
top: 0;
|
| 120 |
+
left: 0;
|
| 121 |
+
right: 0;
|
| 122 |
+
bottom: 0;
|
| 123 |
+
background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
|
| 124 |
+
pointer-events: none;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
.tile:hover {
|
| 128 |
+
transform: scale(1.05);
|
| 129 |
+
box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
|
| 130 |
+
z-index: 10;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
.tile-highlight {
|
| 134 |
+
box-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
|
| 135 |
+
transform: scale(1.03);
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
.code-block {
|
| 139 |
+
font-family: 'Fira Code', monospace;
|
| 140 |
+
background-color: rgba(0, 184, 255, 0.1);
|
| 141 |
+
color: var(--light);
|
| 142 |
+
padding: 0.75rem;
|
| 143 |
+
border-radius: 0.5rem;
|
| 144 |
+
margin: 0.5rem 0;
|
| 145 |
+
cursor: pointer;
|
| 146 |
+
transition: all 0.3s;
|
| 147 |
+
border-left: 3px solid var(--secondary);
|
| 148 |
+
position: relative;
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
.code-block::before {
|
| 152 |
+
content: ">";
|
| 153 |
+
position: absolute;
|
| 154 |
+
left: 0.5rem;
|
| 155 |
+
color: var(--secondary);
|
| 156 |
+
opacity: 0;
|
| 157 |
+
transition: all 0.3s;
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
.code-block:hover {
|
| 161 |
+
background-color: rgba(0, 184, 255, 0.2);
|
| 162 |
+
transform: translateX(5px);
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.code-block:hover::before {
|
| 166 |
+
opacity: 1;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
.scrollbar-hide::-webkit-scrollbar {
|
| 170 |
+
display: none;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
.scrollbar-hide {
|
| 174 |
+
-ms-overflow-style: none;
|
| 175 |
+
scrollbar-width: none;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
.progress-bar {
|
| 179 |
+
transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
|
| 180 |
+
position: relative;
|
| 181 |
+
overflow: hidden;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
.progress-bar::after {
|
| 185 |
+
content: "";
|
| 186 |
+
position: absolute;
|
| 187 |
+
top: 0;
|
| 188 |
+
left: 0;
|
| 189 |
+
right: 0;
|
| 190 |
+
bottom: 0;
|
| 191 |
+
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
|
| 192 |
+
animation: progress-shine 2s infinite;
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
@keyframes progress-shine {
|
| 196 |
+
0% { transform: translateX(-100%); }
|
| 197 |
+
100% { transform: translateX(100%); }
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
.player-avatar {
|
| 201 |
+
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
| 202 |
+
position: relative;
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
.player-avatar::after {
|
| 206 |
+
content: "";
|
| 207 |
+
position: absolute;
|
| 208 |
+
bottom: -5px;
|
| 209 |
+
left: 50%;
|
| 210 |
+
transform: translateX(-50%);
|
| 211 |
+
width: 20px;
|
| 212 |
+
height: 5px;
|
| 213 |
+
background: rgba(0, 255, 136, 0.5);
|
| 214 |
+
border-radius: 50%;
|
| 215 |
+
filter: blur(2px);
|
| 216 |
+
transition: all 0.3s;
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
.player-avatar.active {
|
| 220 |
+
transform: scale(1.15);
|
| 221 |
+
box-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
+
.player-avatar.active::after {
|
| 225 |
+
width: 30px;
|
| 226 |
+
height: 8px;
|
| 227 |
+
filter: blur(3px);
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
.modal {
|
| 231 |
+
transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
| 232 |
+
transform: scale(0.9);
|
| 233 |
+
opacity: 0;
|
| 234 |
+
}
|
| 235 |
+
|
| 236 |
+
.modal.active {
|
| 237 |
+
transform: scale(1);
|
| 238 |
+
opacity: 1;
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
.modal-backdrop {
|
| 242 |
+
background-color: rgba(5, 5, 16, 0.9);
|
| 243 |
+
backdrop-filter: blur(10px);
|
| 244 |
+
transition: opacity 0.3s;
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
+
.crop-animation {
|
| 248 |
+
animation: grow 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
@keyframes grow {
|
| 252 |
+
0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
|
| 253 |
+
50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
|
| 254 |
+
100% { transform: scale(1) rotate(0); opacity: 1; }
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
.grid-pattern {
|
| 258 |
+
background-image:
|
| 259 |
+
linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
|
| 260 |
+
linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
|
| 261 |
+
background-size: 20px 20px;
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
.hex-pattern {
|
| 265 |
+
background-image:
|
| 266 |
+
radial-gradient(circle at center, rgba(0, 184, 255, 0.05) 0%, transparent 70%),
|
| 267 |
+
repeating-linear-gradient(
|
| 268 |
+
0deg,
|
| 269 |
+
rgba(0, 184, 255, 0.03),
|
| 270 |
+
rgba(0, 184, 255, 0.03) 1px,
|
| 271 |
+
transparent 1px,
|
| 272 |
+
transparent 10px
|
| 273 |
+
);
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
.circuit-pattern {
|
| 277 |
+
background-image:
|
| 278 |
+
radial-gradient(circle at center, rgba(255, 0, 228, 0.05) 0%, transparent 70%),
|
| 279 |
+
repeating-linear-gradient(
|
| 280 |
+
45deg,
|
| 281 |
+
rgba(255, 0, 228, 0.03),
|
| 282 |
+
rgba(255, 0, 228, 0.03) 1px,
|
| 283 |
+
transparent 1px,
|
| 284 |
+
transparent 10px
|
| 285 |
+
);
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
.tooltip {
|
| 289 |
+
position: relative;
|
| 290 |
+
display: inline-block;
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
.tooltip .tooltiptext {
|
| 294 |
+
visibility: hidden;
|
| 295 |
+
width: 200px;
|
| 296 |
+
background-color: var(--darker);
|
| 297 |
+
color: var(--light);
|
| 298 |
+
text-align: center;
|
| 299 |
+
border-radius: 6px;
|
| 300 |
+
padding: 10px;
|
| 301 |
+
position: absolute;
|
| 302 |
+
z-index: 100;
|
| 303 |
+
bottom: 125%;
|
| 304 |
+
left: 50%;
|
| 305 |
+
margin-left: -100px;
|
| 306 |
+
opacity: 0;
|
| 307 |
+
transition: opacity 0.3s;
|
| 308 |
+
box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
|
| 309 |
+
border: 1px solid rgba(0, 255, 136, 0.2);
|
| 310 |
+
backdrop-filter: blur(5px);
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
.tooltip:hover .tooltiptext {
|
| 314 |
+
visibility: visible;
|
| 315 |
+
opacity: 1;
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
.btn-primary {
|
| 319 |
+
background: linear-gradient(135deg, var(--primary) 0%, #00cc77 100%);
|
| 320 |
+
color: var(--dark);
|
| 321 |
+
font-weight: 600;
|
| 322 |
+
transition: all 0.3s;
|
| 323 |
+
box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
.btn-primary:hover {
|
| 327 |
+
transform: translateY(-2px);
|
| 328 |
+
box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
|
| 329 |
+
}
|
| 330 |
+
|
| 331 |
+
.btn-secondary {
|
| 332 |
+
background: linear-gradient(135deg, var(--secondary) 0%, #0099cc 100%);
|
| 333 |
+
color: var(--dark);
|
| 334 |
+
font-weight: 600;
|
| 335 |
+
transition: all 0.3s;
|
| 336 |
+
box-shadow: 0 4px 15px rgba(0, 184, 255, 0.3);
|
| 337 |
+
}
|
| 338 |
+
|
| 339 |
+
.btn-secondary:hover {
|
| 340 |
+
transform: translateY(-2px);
|
| 341 |
+
box-shadow: 0 6px 20px rgba(0, 184, 255, 0.4);
|
| 342 |
+
}
|
| 343 |
+
|
| 344 |
+
.btn-accent {
|
| 345 |
+
background: linear-gradient(135deg, var(--accent) 0%, #cc00b8 100%);
|
| 346 |
+
color: var(--light);
|
| 347 |
+
font-weight: 600;
|
| 348 |
+
transition: all 0.3s;
|
| 349 |
+
box-shadow: 0 4px 15px rgba(255, 0, 228, 0.3);
|
| 350 |
+
}
|
| 351 |
+
|
| 352 |
+
.btn-accent:hover {
|
| 353 |
+
transform: translateY(-2px);
|
| 354 |
+
box-shadow: 0 6px 20px rgba(255, 0, 228, 0.4);
|
| 355 |
+
}
|
| 356 |
+
|
| 357 |
+
.btn-dark {
|
| 358 |
+
background: linear-gradient(135deg, rgba(20, 20, 40, 0.8) 0%, rgba(10, 10, 30, 0.9) 100%);
|
| 359 |
+
color: var(--light);
|
| 360 |
+
font-weight: 600;
|
| 361 |
+
transition: all 0.3s;
|
| 362 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
| 363 |
+
border: 1px solid rgba(0, 255, 136, 0.1);
|
| 364 |
+
}
|
| 365 |
+
|
| 366 |
+
.btn-dark:hover {
|
| 367 |
+
transform: translateY(-2px);
|
| 368 |
+
box-shadow: 0 6px 15px rgba(0, 255, 136, 0.2);
|
| 369 |
+
border-color: rgba(0, 255, 136, 0.3);
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
.particles {
|
| 373 |
+
position: absolute;
|
| 374 |
+
top: 0;
|
| 375 |
+
left: 0;
|
| 376 |
+
right: 0;
|
| 377 |
+
bottom: 0;
|
| 378 |
+
overflow: hidden;
|
| 379 |
+
pointer-events: none;
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
.particle {
|
| 383 |
+
position: absolute;
|
| 384 |
+
background-color: var(--primary);
|
| 385 |
+
border-radius: 50%;
|
| 386 |
+
opacity: 0.3;
|
| 387 |
+
animation: float 15s infinite linear;
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
@keyframes particle-float {
|
| 391 |
+
0% { transform: translateY(0) rotate(0deg); }
|
| 392 |
+
100% { transform: translateY(-100vh) rotate(360deg); }
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
+
.grid-lines {
|
| 396 |
+
position: absolute;
|
| 397 |
+
top: 0;
|
| 398 |
+
left: 0;
|
| 399 |
+
right: 0;
|
| 400 |
+
bottom: 0;
|
| 401 |
+
background-image:
|
| 402 |
+
linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
|
| 403 |
+
linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
|
| 404 |
+
background-size: 40px 40px;
|
| 405 |
+
pointer-events: none;
|
| 406 |
+
}
|
| 407 |
+
|
| 408 |
+
.cyber-border {
|
| 409 |
+
position: relative;
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
.cyber-border::before {
|
| 413 |
+
content: "";
|
| 414 |
+
position: absolute;
|
| 415 |
+
top: 0;
|
| 416 |
+
left: 0;
|
| 417 |
+
right: 0;
|
| 418 |
+
height: 2px;
|
| 419 |
+
background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
.cyber-border::after {
|
| 423 |
+
content: "";
|
| 424 |
+
position: absolute;
|
| 425 |
+
bottom: 0;
|
| 426 |
+
left: 0;
|
| 427 |
+
right: 0;
|
| 428 |
+
height: 2px;
|
| 429 |
+
background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
|
| 430 |
+
}
|
| 431 |
+
|
| 432 |
+
.corner-decoration {
|
| 433 |
+
position: absolute;
|
| 434 |
+
width: 20px;
|
| 435 |
+
height: 20px;
|
| 436 |
+
}
|
| 437 |
+
|
| 438 |
+
.corner-decoration.top-left {
|
| 439 |
+
top: 0;
|
| 440 |
+
left: 0;
|
| 441 |
+
border-top: 2px solid var(--primary);
|
| 442 |
+
border-left: 2px solid var(--primary);
|
| 443 |
+
}
|
| 444 |
+
|
| 445 |
+
.corner-decoration.top-right {
|
| 446 |
+
top: 0;
|
| 447 |
+
right: 0;
|
| 448 |
+
border-top: 2px solid var(--primary);
|
| 449 |
+
border-right: 2px solid var(--primary);
|
| 450 |
+
}
|
| 451 |
+
|
| 452 |
+
.corner-decoration.bottom-left {
|
| 453 |
+
bottom: 0;
|
| 454 |
+
left: 0;
|
| 455 |
+
border-bottom: 2px solid var(--primary);
|
| 456 |
+
border-left: 2px solid var(--primary);
|
| 457 |
+
}
|
| 458 |
+
|
| 459 |
+
.corner-decoration.bottom-right {
|
| 460 |
+
bottom: 0;
|
| 461 |
+
right: 0;
|
| 462 |
+
border-bottom: 2px solid var(--primary);
|
| 463 |
+
border-right: 2px solid var(--primary);
|
| 464 |
+
}
|
| 465 |
+
|
| 466 |
+
.status-bar {
|
| 467 |
+
height: 6px;
|
| 468 |
+
border-radius: 3px;
|
| 469 |
+
position: relative;
|
| 470 |
+
overflow: hidden;
|
| 471 |
+
}
|
| 472 |
+
|
| 473 |
+
.status-bar::after {
|
| 474 |
+
content: "";
|
| 475 |
+
position: absolute;
|
| 476 |
+
top: 0;
|
| 477 |
+
left: 0;
|
| 478 |
+
right: 0;
|
| 479 |
+
bottom: 0;
|
| 480 |
+
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
|
| 481 |
+
animation: status-shine 2s infinite;
|
| 482 |
+
}
|
| 483 |
+
|
| 484 |
+
@keyframes status-shine {
|
| 485 |
+
0% { transform: translateX(-100%); }
|
| 486 |
+
100% { transform: translateX(100%); }
|
| 487 |
+
}
|
| 488 |
+
|
| 489 |
+
.hologram-effect {
|
| 490 |
+
position: relative;
|
| 491 |
+
overflow: hidden;
|
| 492 |
+
}
|
| 493 |
+
|
| 494 |
+
.hologram-effect::before {
|
| 495 |
+
content: "";
|
| 496 |
+
position: absolute;
|
| 497 |
+
top: -50%;
|
| 498 |
+
left: -50%;
|
| 499 |
+
right: -50%;
|
| 500 |
+
bottom: -50%;
|
| 501 |
+
background: linear-gradient(
|
| 502 |
+
to bottom,
|
| 503 |
+
transparent 0%,
|
| 504 |
+
rgba(0, 255, 136, 0.1) 50%,
|
| 505 |
+
transparent 100%
|
| 506 |
+
);
|
| 507 |
+
transform: rotate(30deg);
|
| 508 |
+
animation: hologram-scan 3s linear infinite;
|
| 509 |
+
pointer-events: none;
|
| 510 |
+
}
|
| 511 |
+
|
| 512 |
+
@keyframes hologram-scan {
|
| 513 |
+
0% { transform: translateY(-100%) rotate(30deg); }
|
| 514 |
+
100% { transform: translateY(100%) rotate(30deg); }
|
| 515 |
+
}
|
| 516 |
+
|
| 517 |
+
.pixel-grid {
|
| 518 |
+
background-image:
|
| 519 |
+
linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
|
| 520 |
+
linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
|
| 521 |
+
background-size: 5px 5px;
|
| 522 |
+
}
|
| 523 |
+
</style>
|
| 524 |
+
</head>
|
| 525 |
+
<body class="min-h-screen overflow-hidden">
|
| 526 |
+
<!-- Particle Background -->
|
| 527 |
+
<div class="particles" id="particles"></div>
|
| 528 |
+
<div class="grid-lines"></div>
|
| 529 |
+
|
| 530 |
+
<!-- Main Game Container -->
|
| 531 |
+
<div class="flex flex-col h-screen">
|
| 532 |
+
<!-- Game Header -->
|
| 533 |
+
<header class="holographic-bg py-4 px-6 flex justify-between items-center border-b border-gray-800 relative cyber-border">
|
| 534 |
+
<div class="corner-decoration top-left"></div>
|
| 535 |
+
<div class="corner-decoration top-right"></div>
|
| 536 |
+
|
| 537 |
+
<div class="flex items-center space-x-6">
|
| 538 |
+
<div class="flex items-center">
|
| 539 |
+
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-primary to-secondary flex items-center justify-center mr-3 glow-box">
|
| 540 |
+
<i class="fas fa-robot text-xl text-white"></i>
|
| 541 |
+
</div>
|
| 542 |
+
<h1 class="text-2xl font-orbitron font-bold neon-text">ROBOFARM SHDOWN</h1>
|
| 543 |
+
</div>
|
| 544 |
+
|
| 545 |
+
<div class="flex items-center space-x-4">
|
| 546 |
+
<div class="flex items-center space-x-2 bg-gray-900 px-3 py-1 rounded-full border border-gray-800">
|
| 547 |
+
<span class="text-xs uppercase tracking-wider text-gray-400">Level</span>
|
| 548 |
+
<span class="font-orbitron font-bold text-primary">01</span>
|
| 549 |
+
</div>
|
| 550 |
+
|
| 551 |
+
<div class="flex items-center space-x-2">
|
| 552 |
+
<div class="w-3 h-3 rounded-full bg-primary glow-box"></div>
|
| 553 |
+
<span id="level-name" class="font-medium">Patch of Dirt</span>
|
| 554 |
+
</div>
|
| 555 |
+
</div>
|
| 556 |
+
</div>
|
| 557 |
+
|
| 558 |
+
<div class="flex items-center space-x-6">
|
| 559 |
+
<div class="flex items-center space-x-3">
|
| 560 |
+
<div class="flex items-center space-x-2 bg-gray-900 px-3 py-1 rounded-full border border-gray-800">
|
| 561 |
+
<i class="fas fa-stopwatch text-secondary"></i>
|
| 562 |
+
<span id="timer" class="font-mono font-orbitron">00:30</span>
|
| 563 |
+
</div>
|
| 564 |
+
|
| 565 |
+
<div class="flex items-center space-x-2 bg-gray-900 px-3 py-1 rounded-full border border-gray-800">
|
| 566 |
+
<i class="fas fa-star text-yellow-400"></i>
|
| 567 |
+
<span id="score" class="font-orbitron font-bold">0</span>
|
| 568 |
+
</div>
|
| 569 |
+
</div>
|
| 570 |
+
|
| 571 |
+
<button id="pause-btn" class="btn-dark px-4 py-2 rounded-full flex items-center space-x-2">
|
| 572 |
+
<i class="fas fa-pause"></i>
|
| 573 |
+
<span>Pause</span>
|
| 574 |
+
</button>
|
| 575 |
+
</div>
|
| 576 |
+
</header>
|
| 577 |
+
|
| 578 |
+
<!-- Main Game Area -->
|
| 579 |
+
<div class="flex-1 flex flex-col md:flex-row overflow-hidden">
|
| 580 |
+
<!-- Manual Gameplay Panel -->
|
| 581 |
+
<div id="manual-panel" class="w-full md:w-1/2 holographic-bg p-6 flex flex-col border-r border-gray-800 relative">
|
| 582 |
+
<div class="corner-decoration top-left"></div>
|
| 583 |
+
<div class="corner-decoration bottom-left"></div>
|
| 584 |
+
|
| 585 |
+
<div class="flex justify-between items-center mb-6">
|
| 586 |
+
<div class="flex items-center space-x-3">
|
| 587 |
+
<h2 class="text-xl font-orbitron font-bold flex items-center neon-text">
|
| 588 |
+
<span class="w-8 h-8 rounded-full bg-blue-900 flex items-center justify-center mr-2 glow-box-secondary">
|
| 589 |
+
<i class="fas fa-user text-blue-300"></i>
|
| 590 |
+
</span>
|
| 591 |
+
MANUAL FARMING
|
| 592 |
+
</h2>
|
| 593 |
+
<span id="manual-phase-badge" class="bg-blue-900 text-blue-300 px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wider glow-box-secondary">Phase 1</span>
|
| 594 |
+
</div>
|
| 595 |
+
|
| 596 |
+
<div id="manual-score" class="bg-gray-900 px-4 py-2 rounded-lg border border-gray-800 flex items-center space-x-2">
|
| 597 |
+
<span class="text-sm uppercase tracking-wider text-gray-400">Score</span>
|
| 598 |
+
<span class="font-orbitron font-bold text-xl text-primary">0</span>
|
| 599 |
+
</div>
|
| 600 |
+
</div>
|
| 601 |
+
|
| 602 |
+
<!-- Farm Grid -->
|
| 603 |
+
<div id="manual-farm" class="grid grid-cols-4 gap-3 mb-6 flex-1">
|
| 604 |
+
<!-- Tiles will be generated by JavaScript -->
|
| 605 |
+
</div>
|
| 606 |
+
|
| 607 |
+
<!-- Controls -->
|
| 608 |
+
<div class="bg-gray-900 p-4 rounded-xl border border-gray-800 mb-4">
|
| 609 |
+
<h3 class="text-sm font-bold mb-3 uppercase tracking-wider text-gray-400 flex items-center">
|
| 610 |
+
<i class="fas fa-gamepad mr-2 text-secondary"></i>
|
| 611 |
+
Controls
|
| 612 |
+
</h3>
|
| 613 |
+
<div class="grid grid-cols-3 gap-3">
|
| 614 |
+
<div class="bg-gray-800 p-3 rounded-lg text-center border border-gray-700 hover:border-secondary transition-all">
|
| 615 |
+
<div class="bg-gray-900 w-10 h-10 mx-auto mb-2 rounded-lg flex items-center justify-center text-xl font-orbitron border border-gray-700">W</div>
|
| 616 |
+
<span class="text-xs uppercase tracking-wider">Move Up</span>
|
| 617 |
+
</div>
|
| 618 |
+
<div class="bg-gray-800 p-3 rounded-lg text-center border border-gray-700 hover:border-secondary transition-all">
|
| 619 |
+
<div class="bg-gray-900 w-10 h-10 mx-auto mb-2 rounded-lg flex items-center justify-center text-xl font-orbitron border border-gray-700">A</div>
|
| 620 |
+
<span class="text-xs uppercase tracking-wider">Move Left</span>
|
| 621 |
+
</div>
|
| 622 |
+
<div class="bg-gray-800 p-3 rounded-lg text-center border border-gray-700 hover:border-secondary transition-all">
|
| 623 |
+
<div class="bg-gray-900 w-10 h-10 mx-auto mb-2 rounded-lg flex items-center justify-center text-xl font-orbitron border border-gray-700">D</div>
|
| 624 |
+
<span class="text-xs uppercase tracking-wider">Move Right</span>
|
| 625 |
+
</div>
|
| 626 |
+
<div class="bg-gray-800 p-3 rounded-lg text-center border border-gray-700 hover:border-secondary transition-all">
|
| 627 |
+
<div class="bg-gray-900 w-10 h-10 mx-auto mb-2 rounded-lg flex items-center justify-center text-xl font-orbitron border border-gray-700">S</div>
|
| 628 |
+
<span class="text-xs uppercase tracking-wider">Move Down</span>
|
| 629 |
+
</div>
|
| 630 |
+
<div class="bg-gray-800 p-3 rounded-lg text-center border border-gray-700 hover:border-secondary transition-all">
|
| 631 |
+
<div class="bg-gray-900 w-10 h-10 mx-auto mb-2 rounded-lg flex items-center justify-center text-xl font-orbitron border border-gray-700">E</div>
|
| 632 |
+
<span class="text-xs uppercase tracking-wider">Interact</span>
|
| 633 |
+
</div>
|
| 634 |
+
<div class="bg-gray-800 p-3 rounded-lg text-center border border-gray-700 hover:border-secondary transition-all">
|
| 635 |
+
<div class="bg-gray-900 w-10 h-10 mx-auto mb-2 rounded-lg flex items-center justify-center text-xl font-orbitron border border-gray-700">Q</div>
|
| 636 |
+
<span class="text-xs uppercase tracking-wider">Switch Tool</span>
|
| 637 |
+
</div>
|
| 638 |
+
</div>
|
| 639 |
+
</div>
|
| 640 |
+
|
| 641 |
+
<!-- Current Tool -->
|
| 642 |
+
<div class="mt-auto bg-gray-900 p-3 rounded-lg border border-gray-800 flex items-center justify-between">
|
| 643 |
+
<span class="text-sm uppercase tracking-wider text-gray-400">Current Tool</span>
|
| 644 |
+
<div id="current-tool" class="bg-gray-800 px-4 py-2 rounded-lg flex items-center space-x-3 border border-gray-700">
|
| 645 |
+
<div class="w-6 h-6 rounded-full bg-primary flex items-center justify-center">
|
| 646 |
+
<i class="fas fa-seedling text-xs text-gray-900"></i>
|
| 647 |
+
</div>
|
| 648 |
+
<span class="font-medium">Seeds</span>
|
| 649 |
+
</div>
|
| 650 |
+
</div>
|
| 651 |
+
</div>
|
| 652 |
+
|
| 653 |
+
<!-- Bot Programming Panel -->
|
| 654 |
+
<div id="bot-panel" class="w-full md:w-1/2 holographic-bg p-6 flex flex-col relative">
|
| 655 |
+
<div class="corner-decoration top-right"></div>
|
| 656 |
+
<div class="corner-decoration bottom-right"></div>
|
| 657 |
+
|
| 658 |
+
<div class="flex justify-between items-center mb-6">
|
| 659 |
+
<div class="flex items-center space-x-3">
|
| 660 |
+
<h2 class="text-xl font-orbitron font-bold flex items-center neon-secondary">
|
| 661 |
+
<span class="w-8 h-8 rounded-full bg-purple-900 flex items-center justify-center mr-2 glow-box-accent">
|
| 662 |
+
<i class="fas fa-robot text-purple-300"></i>
|
| 663 |
+
</span>
|
| 664 |
+
ROBO-AGENT
|
| 665 |
+
</h2>
|
| 666 |
+
<span id="bot-phase-badge" class="bg-purple-900 text-purple-300 px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wider glow-box-accent">Phase 2</span>
|
| 667 |
+
</div>
|
| 668 |
+
|
| 669 |
+
<div id="bot-score" class="bg-gray-900 px-4 py-2 rounded-lg border border-gray-800 flex items-center space-x-2">
|
| 670 |
+
<span class="text-sm uppercase tracking-wider text-gray-400">Score</span>
|
| 671 |
+
<span class="font-orbitron font-bold text-xl text-secondary">0</span>
|
| 672 |
+
</div>
|
| 673 |
+
</div>
|
| 674 |
+
|
| 675 |
+
<!-- Farm Grid -->
|
| 676 |
+
<div id="bot-farm" class="grid grid-cols-4 gap-3 mb-6 flex-1">
|
| 677 |
+
<!-- Tiles will be generated by JavaScript -->
|
| 678 |
+
</div>
|
| 679 |
+
|
| 680 |
+
<!-- Programming Interface -->
|
| 681 |
+
<div class="bg-gray-900 p-4 rounded-xl border border-gray-800 mb-4">
|
| 682 |
+
<div class="flex justify-between items-center mb-4">
|
| 683 |
+
<h3 class="text-sm font-bold uppercase tracking-wider text-gray-400 flex items-center">
|
| 684 |
+
<i class="fas fa-code mr-2 text-accent"></i>
|
| 685 |
+
Code Editor
|
| 686 |
+
</h3>
|
| 687 |
+
<div class="flex space-x-3">
|
| 688 |
+
<button id="run-bot-btn" class="btn-accent px-4 py-2 rounded-lg text-sm flex items-center space-x-2">
|
| 689 |
+
<i class="fas fa-play"></i>
|
| 690 |
+
<span>Run</span>
|
| 691 |
+
</button>
|
| 692 |
+
<button id="reset-bot-btn" class="btn-dark px-4 py-2 rounded-lg text-sm flex items-center space-x-2">
|
| 693 |
+
<i class="fas fa-redo"></i>
|
| 694 |
+
<span>Reset</span>
|
| 695 |
+
</button>
|
| 696 |
+
</div>
|
| 697 |
+
</div>
|
| 698 |
+
|
| 699 |
+
<div class="mb-3">
|
| 700 |
+
<h4 class="text-xs uppercase tracking-wider text-gray-500 mb-1">Code Blocks</h4>
|
| 701 |
+
<div id="code-blocks" class="bg-gray-800 p-3 rounded-lg mb-2 h-24 overflow-y-auto scrollbar-hide grid grid-cols-2 gap-2 border border-gray-700">
|
| 702 |
+
<div class="code-block" draggable="true" data-action="move-right">move("right")</div>
|
| 703 |
+
<div class="code-block" draggable="true" data-action="move-left">move("left")</div>
|
| 704 |
+
<div class="code-block" draggable="true" data-action="move-up">move("up")</div>
|
| 705 |
+
<div class="code-block" draggable="true" data-action="move-down">move("down")</div>
|
| 706 |
+
<div class="code-block" draggable="true" data-action="plant">plant()</div>
|
| 707 |
+
<div class="code-block" draggable="true" data-action="water">water()</div>
|
| 708 |
+
<div class="code-block" draggable="true" data-action="harvest">harvest()</div>
|
| 709 |
+
<div class="code-block" draggable="true" data-action="wait">wait(1)</div>
|
| 710 |
+
</div>
|
| 711 |
+
</div>
|
| 712 |
+
|
| 713 |
+
<div>
|
| 714 |
+
<h4 class="text-xs uppercase tracking-wider text-gray-500 mb-1">Your Program</h4>
|
| 715 |
+
<div id="code-area" class="bg-gray-800 p-3 rounded-lg h-24 overflow-y-auto scrollbar-hide border-2 border-dashed border-gray-700 hover:border-accent transition-all">
|
| 716 |
+
<!-- User's code will appear here -->
|
| 717 |
+
<div class="text-gray-600 text-sm flex items-center justify-center h-full">
|
| 718 |
+
<i class="fas fa-arrow-up mr-2"></i>
|
| 719 |
+
Drag code blocks here
|
| 720 |
+
</div>
|
| 721 |
+
</div>
|
| 722 |
+
</div>
|
| 723 |
+
</div>
|
| 724 |
+
</div>
|
| 725 |
+
</div>
|
| 726 |
+
|
| 727 |
+
<!-- Game Footer -->
|
| 728 |
+
<footer class="holographic-bg py-3 px-6 border-t border-gray-800 flex justify-between items-center relative cyber-border">
|
| 729 |
+
<div class="corner-decoration bottom-left"></div>
|
| 730 |
+
<div class="corner-decoration bottom-right"></div>
|
| 731 |
+
|
| 732 |
+
<div class="flex items-center space-x-6">
|
| 733 |
+
<div class="flex items-center space-x-3">
|
| 734 |
+
<span class="text-sm uppercase tracking-wider text-gray-400">Progress</span>
|
| 735 |
+
<div class="w-40 h-2 bg-gray-800 rounded-full overflow-hidden">
|
| 736 |
+
<div id="progress-bar" class="h-full bg-gradient-to-r from-primary to-secondary progress-bar" style="width: 0%"></div>
|
| 737 |
+
</div>
|
| 738 |
+
</div>
|
| 739 |
+
|
| 740 |
+
<button id="hint-btn" class="text-secondary hover:text-primary transition-colors text-sm flex items-center space-x-2">
|
| 741 |
+
<i class="fas fa-lightbulb"></i>
|
| 742 |
+
<span>Get Hint</span>
|
| 743 |
+
</button>
|
| 744 |
+
</div>
|
| 745 |
+
|
| 746 |
+
<div class="flex space-x-4">
|
| 747 |
+
<button id="sound-btn" class="w-10 h-10 rounded-full bg-gray-900 flex items-center justify-center border border-gray-800 hover:border-primary transition-all tooltip">
|
| 748 |
+
<i class="fas fa-volume-up"></i>
|
| 749 |
+
<span class="tooltiptext">Toggle Sound</span>
|
| 750 |
+
</button>
|
| 751 |
+
<button id="fullscreen-btn" class="w-10 h-10 rounded-full bg-gray-900 flex items-center justify-center border border-gray-800 hover:border-primary transition-all tooltip">
|
| 752 |
+
<i class="fas fa-expand"></i>
|
| 753 |
+
<span class="tooltiptext">Fullscreen</span>
|
| 754 |
+
</button>
|
| 755 |
+
</div>
|
| 756 |
+
</footer>
|
| 757 |
+
</div>
|
| 758 |
+
|
| 759 |
+
<!-- Pause Modal -->
|
| 760 |
+
<div id="pause-modal" class="fixed inset-0 flex items-center justify-center z-50 modal-backdrop hidden">
|
| 761 |
+
<div class="bg-gray-900 rounded-2xl p-8 w-full max-w-md modal border border-gray-800 glow-box">
|
| 762 |
+
<div class="text-center mb-8">
|
| 763 |
+
<div class="w-20 h-20 rounded-full bg-gradient-to-br from-primary to-secondary flex items-center justify-center mx-auto mb-4 glow-box animate-pulse">
|
| 764 |
+
<i class="fas fa-pause text-3xl text-gray-900"></i>
|
| 765 |
+
</div>
|
| 766 |
+
<h2 class="text-3xl font-orbitron font-bold mb-2 neon-text">GAME PAUSED</h2>
|
| 767 |
+
<p class="text-gray-400">Take a break, farmer!</p>
|
| 768 |
+
</div>
|
| 769 |
+
|
| 770 |
+
<div class="flex flex-col space-y-4">
|
| 771 |
+
<button id="resume-btn" class="btn-primary py-4 rounded-xl font-bold flex items-center justify-center space-x-3">
|
| 772 |
+
<i class="fas fa-play"></i>
|
| 773 |
+
<span>Resume Game</span>
|
| 774 |
+
</button>
|
| 775 |
+
<button id="restart-btn" class="btn-secondary py-4 rounded-xl font-bold flex items-center justify-center space-x-3">
|
| 776 |
+
<i class="fas fa-redo"></i>
|
| 777 |
+
<span>Restart Level</span>
|
| 778 |
+
</button>
|
| 779 |
+
<button id="menu-btn" class="btn-dark py-4 rounded-xl font-bold flex items-center justify-center space-x-3 border border-gray-800">
|
| 780 |
+
<i class="fas fa-home"></i>
|
| 781 |
+
<span>Main Menu</span>
|
| 782 |
+
</button>
|
| 783 |
+
<button id="quit-btn" class="btn-dark py-4 rounded-xl font-bold flex items-center justify-center space-x-3 border border-red-900 hover:border-red-500">
|
| 784 |
+
<i class="fas fa-power-off text-red-500"></i>
|
| 785 |
+
<span class="text-red-500">Quit Game</span>
|
| 786 |
+
</button>
|
| 787 |
+
</div>
|
| 788 |
+
</div>
|
| 789 |
+
</div>
|
| 790 |
+
|
| 791 |
+
<!-- Level Complete Modal -->
|
| 792 |
+
<div id="complete-modal" class="fixed inset-0 flex items-center justify-center z-50 modal-backdrop hidden">
|
| 793 |
+
<div class="bg-gray-900 rounded-2xl p-8 w-full max-w-md modal border border-gray-800 glow-box">
|
| 794 |
+
<div class="text-center mb-8">
|
| 795 |
+
<div class="w-24 h-24 rounded-full bg-gradient-to-br from-yellow-400 to-yellow-600 flex items-center justify-center mx-auto mb-6 shadow-lg animate-float">
|
| 796 |
+
<i class="fas fa-trophy text-4xl text-gray-900"></i>
|
| 797 |
+
</div>
|
| 798 |
+
<h2 class="text-3xl font-orbitron font-bold mb-2 text-primary">LEVEL COMPLETE!</h2>
|
| 799 |
+
<p class="text-gray-400">Your farming skills are impressive</p>
|
| 800 |
+
</div>
|
| 801 |
+
|
| 802 |
+
<div class="grid grid-cols-2 gap-4 mb-8">
|
| 803 |
+
<div class="bg-gray-800 p-4 rounded-xl border border-gray-700">
|
| 804 |
+
<div class="text-sm uppercase tracking-wider text-gray-400 mb-1">Manual Score</div>
|
| 805 |
+
<div id="final-manual-score" class="text-2xl font-orbitron font-bold text-primary">120</div>
|
| 806 |
+
</div>
|
| 807 |
+
<div class="bg-gray-800 p-4 rounded-xl border border-gray-700">
|
| 808 |
+
<div class="text-sm uppercase tracking-wider text-gray-400 mb-1">Bot Score</div>
|
| 809 |
+
<div id="final-bot-score" class="text-2xl font-orbitron font-bold text-secondary">150</div>
|
| 810 |
+
</div>
|
| 811 |
+
</div>
|
| 812 |
+
|
| 813 |
+
<div class="mb-8 text-center">
|
| 814 |
+
<div id="result-message" class="text-xl font-orbitron font-bold text-primary mb-2">Your Bot Won!</div>
|
| 815 |
+
<div class="text-sm text-gray-500">Time to automate more tasks!</div>
|
| 816 |
+
</div>
|
| 817 |
+
|
| 818 |
+
<div class="flex flex-col space-y-4">
|
| 819 |
+
<button id="next-level-btn" class="btn-primary py-4 rounded-xl font-bold flex items-center justify-center space-x-3">
|
| 820 |
+
<i class="fas fa-arrow-right"></i>
|
| 821 |
+
<span>Next Level</span>
|
| 822 |
+
</button>
|
| 823 |
+
<button id="retry-btn" class="btn-secondary py-4 rounded-xl font-bold flex items-center justify-center space-x-3">
|
| 824 |
+
<i class="fas fa-redo"></i>
|
| 825 |
+
<span>Try Again</span>
|
| 826 |
+
</button>
|
| 827 |
+
<button id="level-select-btn" class="btn-dark py-4 rounded-xl font-bold flex items-center justify-center space-x-3 border border-gray-800">
|
| 828 |
+
<i class="fas fa-list-ol"></i>
|
| 829 |
+
<span>Level Select</span>
|
| 830 |
+
</button>
|
| 831 |
+
</div>
|
| 832 |
+
</div>
|
| 833 |
+
</div>
|
| 834 |
+
|
| 835 |
+
<!-- Hint Modal -->
|
| 836 |
+
<div id="hint-modal" class="fixed inset-0 flex items-center justify-center z-50 modal-backdrop hidden">
|
| 837 |
+
<div class="bg-gray-900 rounded-2xl p-8 w-full max-w-md modal border border-gray-800 glow-box-secondary">
|
| 838 |
+
<div class="text-center mb-6">
|
| 839 |
+
<div class="w-16 h-16 rounded-full bg-gradient-to-br from-secondary to-blue-600 flex items-center justify-center mx-auto mb-4 glow-box-secondary">
|
| 840 |
+
<i class="fas fa-lightbulb text-2xl text-gray-900"></i>
|
| 841 |
+
</div>
|
| 842 |
+
<h2 class="text-2xl font-orbitron font-bold mb-2 neon-secondary">LEVEL HINT</h2>
|
| 843 |
+
<p class="text-sm text-gray-400">Need some help, farmer?</p>
|
| 844 |
+
</div>
|
| 845 |
+
|
| 846 |
+
<div class="bg-gray-800 p-5 rounded-xl mb-6 border border-gray-700">
|
| 847 |
+
<p id="hint-text" class="mb-4 text-gray-300">For this small farm, you can simply move right, plant, and water each tile in sequence. Try writing code that does this!</p>
|
| 848 |
+
|
| 849 |
+
<div class="bg-gray-900 p-3 rounded-lg border border-gray-700">
|
| 850 |
+
<div class="code-block">move("right")</div>
|
| 851 |
+
<div class="code-block">plant()</div>
|
| 852 |
+
<div class="code-block">water()</div>
|
| 853 |
+
<div class="code-block">move("right")</div>
|
| 854 |
+
<div class="code-block">plant()</div>
|
| 855 |
+
<div class="code-block">water()</div>
|
| 856 |
+
</div>
|
| 857 |
+
</div>
|
| 858 |
+
|
| 859 |
+
<button id="close-hint-btn" class="w-full btn-secondary py-4 rounded-xl font-bold flex items-center justify-center space-x-3">
|
| 860 |
+
<i class="fas fa-check"></i>
|
| 861 |
+
<span>Got It!</span>
|
| 862 |
+
</button>
|
| 863 |
+
</div>
|
| 864 |
+
</div>
|
| 865 |
+
|
| 866 |
+
<script>
|
| 867 |
+
// Game State
|
| 868 |
+
const gameState = {
|
| 869 |
+
currentLevel: 1,
|
| 870 |
+
levels: [
|
| 871 |
+
{
|
| 872 |
+
name: "Patch of Dirt",
|
| 873 |
+
size: 4,
|
| 874 |
+
manualTime: 30,
|
| 875 |
+
botTime: 30,
|
| 876 |
+
tiles: [
|
| 877 |
+
{ type: "soil", state: "dry" },
|
| 878 |
+
{ type: "soil", state: "dry" },
|
| 879 |
+
{ type: "soil", state: "dry" },
|
| 880 |
+
{ type: "soil", state: "dry" }
|
| 881 |
+
],
|
| 882 |
+
goal: "Plant and water all crops",
|
| 883 |
+
hint: "For this small farm, you can simply move right, plant, and water each tile in sequence. Try writing code that does this!"
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
name: "Small Plot",
|
| 887 |
+
size: 4,
|
| 888 |
+
manualTime: 25,
|
| 889 |
+
botTime: 25,
|
| 890 |
+
tiles: [
|
| 891 |
+
{ type: "soil", state: "dry" },
|
| 892 |
+
{ type: "soil", state: "dry", obstacle: "rock" },
|
| 893 |
+
{ type: "soil", state: "dry" },
|
| 894 |
+
{ type: "soil", state: "dry" }
|
| 895 |
+
],
|
| 896 |
+
goal: "Plant around the obstacle",
|
| 897 |
+
hint: "Use conditionals to check if a tile has an obstacle before planting."
|
| 898 |
+
}
|
| 899 |
+
],
|
| 900 |
+
phase: "manual", // manual or bot
|
| 901 |
+
manualScore: 0,
|
| 902 |
+
botScore: 0,
|
| 903 |
+
timeLeft: 30,
|
| 904 |
+
timerInterval: null,
|
| 905 |
+
currentTool: "seeds", // seeds, water, harvest
|
| 906 |
+
playerPosition: 0,
|
| 907 |
+
botPosition: 0,
|
| 908 |
+
isPaused: false,
|
| 909 |
+
soundEnabled: true
|
| 910 |
+
};
|
| 911 |
+
|
| 912 |
+
// DOM Elements
|
| 913 |
+
const elements = {
|
| 914 |
+
manualFarm: document.getElementById('manual-farm'),
|
| 915 |
+
botFarm: document.getElementById('bot-farm'),
|
| 916 |
+
manualScore: document.querySelector('#manual-score span'),
|
| 917 |
+
botScore: document.querySelector('#bot-score span'),
|
| 918 |
+
timer: document.getElementById('timer'),
|
| 919 |
+
currentTool: document.getElementById('current-tool'),
|
| 920 |
+
codeBlocks: document.getElementById('code-blocks'),
|
| 921 |
+
codeArea: document.getElementById('code-area'),
|
| 922 |
+
runBotBtn: document.getElementById('run-bot-btn'),
|
| 923 |
+
resetBotBtn: document.getElementById('reset-bot-btn'),
|
| 924 |
+
pauseBtn: document.getElementById('pause-btn'),
|
| 925 |
+
pauseModal: document.getElementById('pause-modal'),
|
| 926 |
+
resumeBtn: document.getElementById('resume-btn'),
|
| 927 |
+
restartBtn: document.getElementById('restart-btn'),
|
| 928 |
+
menuBtn: document.getElementById('menu-btn'),
|
| 929 |
+
quitBtn: document.getElementById('quit-btn'),
|
| 930 |
+
completeModal: document.getElementById('complete-modal'),
|
| 931 |
+
nextLevelBtn: document.getElementById('next-level-btn'),
|
| 932 |
+
retryBtn: document.getElementById('retry-btn'),
|
| 933 |
+
levelSelectBtn: document.getElementById('level-select-btn'),
|
| 934 |
+
finalManualScore: document.getElementById('final-manual-score'),
|
| 935 |
+
finalBotScore: document.getElementById('final-bot-score'),
|
| 936 |
+
resultMessage: document.getElementById('result-message'),
|
| 937 |
+
hintBtn: document.getElementById('hint-btn'),
|
| 938 |
+
hintModal: document.getElementById('hint-modal'),
|
| 939 |
+
closeHintBtn: document.getElementById('close-hint-btn'),
|
| 940 |
+
hintText: document.getElementById('hint-text'),
|
| 941 |
+
soundBtn: document.getElementById('sound-btn'),
|
| 942 |
+
fullscreenBtn: document.getElementById('fullscreen-btn'),
|
| 943 |
+
progressBar: document.getElementById('progress-bar'),
|
| 944 |
+
levelName: document.getElementById('level-name'),
|
| 945 |
+
manualPhaseBadge: document.getElementById('manual-phase-badge'),
|
| 946 |
+
botPhaseBadge: document.getElementById('bot-phase-badge'),
|
| 947 |
+
particles: document.getElementById('particles')
|
| 948 |
+
};
|
| 949 |
+
|
| 950 |
+
// Create particles
|
| 951 |
+
function createParticles() {
|
| 952 |
+
for (let i = 0; i < 50; i++) {
|
| 953 |
+
const particle = document.createElement('div');
|
| 954 |
+
particle.classList.add('particle');
|
| 955 |
+
|
| 956 |
+
const size = Math.random() * 3 + 1;
|
| 957 |
+
const posX = Math.random() * 100;
|
| 958 |
+
const posY = Math.random() * 100;
|
| 959 |
+
const duration = Math.random() * 20 + 10;
|
| 960 |
+
const delay = Math.random() * 10;
|
| 961 |
+
|
| 962 |
+
particle.style.width = `${size}px`;
|
| 963 |
+
particle.style.height = `${size}px`;
|
| 964 |
+
particle.style.left = `${posX}%`;
|
| 965 |
+
particle.style.top = `${posY}%`;
|
| 966 |
+
particle.style.animation = `particle-float ${duration}s ${delay}s infinite linear`;
|
| 967 |
+
particle.style.opacity = Math.random() * 0.3 + 0.1;
|
| 968 |
+
|
| 969 |
+
elements.particles.appendChild(particle);
|
| 970 |
+
}
|
| 971 |
+
}
|
| 972 |
+
|
| 973 |
+
// Initialize Game
|
| 974 |
+
function initGame() {
|
| 975 |
+
createParticles();
|
| 976 |
+
loadLevel(gameState.currentLevel);
|
| 977 |
+
setupEventListeners();
|
| 978 |
+
updateUI();
|
| 979 |
+
}
|
| 980 |
+
|
| 981 |
+
// Load Level
|
| 982 |
+
function loadLevel(levelNum) {
|
| 983 |
+
const level = gameState.levels[levelNum - 1];
|
| 984 |
+
gameState.phase = "manual";
|
| 985 |
+
gameState.manualScore = 0;
|
| 986 |
+
gameState.botScore = 0;
|
| 987 |
+
gameState.timeLeft = level.manualTime;
|
| 988 |
+
gameState.playerPosition = 0;
|
| 989 |
+
gameState.botPosition = 0;
|
| 990 |
+
|
| 991 |
+
// Update UI
|
| 992 |
+
elements.levelName.textContent = level.name;
|
| 993 |
+
elements.timer.textContent = formatTime(gameState.timeLeft);
|
| 994 |
+
elements.manualScore.textContent = gameState.manualScore;
|
| 995 |
+
elements.botScore.textContent = gameState.botScore;
|
| 996 |
+
elements.progressBar.style.width = '0%';
|
| 997 |
+
|
| 998 |
+
// Generate Farm Grids
|
| 999 |
+
generateFarmGrid(elements.manualFarm, level.tiles, true);
|
| 1000 |
+
generateFarmGrid(elements.botFarm, level.tiles, false);
|
| 1001 |
+
|
| 1002 |
+
// Start Timer
|
| 1003 |
+
startTimer();
|
| 1004 |
+
|
| 1005 |
+
// Update phase badges
|
| 1006 |
+
updatePhaseBadges();
|
| 1007 |
+
}
|
| 1008 |
+
|
| 1009 |
+
// Generate Farm Grid
|
| 1010 |
+
function generateFarmGrid(container, tiles, isManual) {
|
| 1011 |
+
container.innerHTML = '';
|
| 1012 |
+
|
| 1013 |
+
tiles.forEach((tile, index) => {
|
| 1014 |
+
const tileElement = document.createElement('div');
|
| 1015 |
+
tileElement.className = `tile rounded-xl flex items-center justify-center relative overflow-hidden`;
|
| 1016 |
+
|
| 1017 |
+
// Base styling
|
| 1018 |
+
tileElement.classList.add('hologram-effect');
|
| 1019 |
+
|
| 1020 |
+
// Set tile appearance based on type and state
|
| 1021 |
+
if (tile.obstacle === 'rock') {
|
| 1022 |
+
tileElement.className += ' bg-gray-800';
|
| 1023 |
+
tileElement.innerHTML = `
|
| 1024 |
+
<i class="fas fa-mountain text-gray-600 text-2xl"></i>
|
| 1025 |
+
<div class="absolute inset-0 bg-gradient-to-br from-transparent to-gray-900 opacity-30"></div>
|
| 1026 |
+
`;
|
| 1027 |
+
} else {
|
| 1028 |
+
if (tile.state === 'dry') {
|
| 1029 |
+
tileElement.className += ' bg-yellow-900';
|
| 1030 |
+
tileElement.innerHTML = `
|
| 1031 |
+
<div class="absolute inset-0 bg-gradient-to-br from-transparent to-yellow-900 opacity-30"></div>
|
| 1032 |
+
<div class="w-full h-full bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiM5Yzc2MDAiLz48cGF0aCBkPSJNMjAgMjBMNDAgNDBNNjAgMjBMODAgNDBNMTAwIDIwTDEyMCA0ME0xNDAgMjBMMTYwIDQwTTE4MCAyMEwyMDAgNDBNMjAgNjBMNDAgODBNNjAgNjBMODAgODBNMTAwIDYwTDEyMCA4ME0xNDAgNjBMMTYwIDgwTTE4MCA2MEwyMDAgODBNMjAgMTAwTDQwIDEyME02MCAxMDBMODAgMTIwTTEwMCAxMDBMMTIwIDEyME0xNDAgMTAwTDE2MCAxMjBNMTgwIDEwMEwyMDAgMTIwTTIwIDE0MEw0MCAxNjBNNjAgMTQwTDgwIDE2ME0xMDAgMTQwTDEyMCAxNjBNMTQwIDE0MEwxNjAgMTYwTTE4MCAxNDBMMjAwIDE2MCBNNDAgMEw2MCAyME04MCAwTDEwMCAyME0xMjAgMEwxNDAgMjBNMTYwIDBMMjAwIDIwTTQwIDQwTDYwIDYwTDgwIDgwTDEwMCAxMDBMMTIwIDEyMEwxNDAgMTQwTDE2MCAxNjBMMjAwIDE4MCIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiIHN0cm9rZS13aWR0aD0iMSIgLz48L3N2Zz4=')] opacity-20"></div>
|
| 1033 |
+
`;
|
| 1034 |
+
} else if (tile.state === 'wet') {
|
| 1035 |
+
tileElement.className += ' bg-yellow-800';
|
| 1036 |
+
tileElement.innerHTML = `
|
| 1037 |
+
<div class="absolute inset-0 bg-gradient-to-br from-transparent to-yellow-800 opacity-30"></div>
|
| 1038 |
+
<div class="w-full h-full bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiM4YzZkMDAiLz48cGF0aCBkPSJNMjAgMjBMNDAgNDBNNjAgMjBMODAgNDBNMTAwIDIwTDEyMCA0ME0xNDAgMjBMMTYwIDQwTTE4MCAyMEwyMDAgNDBNMjAgNjBMNDAgODBNNjAgNjBMODAgODBNMTAwIDYwTDEyMCA4ME0xNDAgNjBMMTYwIDgwTTE4MCA2MEwyMDAgODBNMjAgMTAwTDQwIDEyME02MCAxMDBMODAgMTIwTTEwMCAxMDBMMTIwIDEyME0xNDAgMTAwTDE2MCAxMjBNMTgwIDEwMEwyMDAgMTIwTTIwIDE0MEw0MCAxNjBNNjAgMTQwTDgwIDE2ME0xMDAgMTQwTDEyMCAxNjBNMTQwIDE0MEwxNjAgMTYwTTE4MCAxNDBMMjAwIDE2MCBNNDAgMEw2MCAyME04MCAwTDEwMCAyME0xMjAgMEwxNDAgMjBNMTYwIDBMMjAwIDIwTTQwIDQwTDYwIDYwTDgwIDgwTDEwMCAxMDBMMTIwIDEyMEwxNDAgMTQwTDE2MCAxNjBMMjAwIDE4MCIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiIHN0cm9rZS13aWR0aD0iMSIgLz48L3N2Zz4=')] opacity-30"></div>
|
| 1039 |
+
`;
|
| 1040 |
+
} else if (tile.state === 'planted') {
|
| 1041 |
+
tileElement.className += ' bg-green-900';
|
| 1042 |
+
tileElement.innerHTML = `
|
| 1043 |
+
<i class="fas fa-seedling text-green-300 text-2xl crop-animation"></i>
|
| 1044 |
+
<div class="absolute inset-0 bg-gradient-to-br from-transparent to-green-900 opacity-30"></div>
|
| 1045 |
+
`;
|
| 1046 |
+
} else if (tile.state === 'grown') {
|
| 1047 |
+
tileElement.className += ' bg-green-700';
|
| 1048 |
+
tileElement.innerHTML = `
|
| 1049 |
+
<i class="fas fa-carrot text-yellow-300 text-2xl"></i>
|
| 1050 |
+
<div class="absolute inset-0 bg-gradient-to-br from-transparent to-green-700 opacity-30"></div>
|
| 1051 |
+
`;
|
| 1052 |
+
} else if (tile.state === 'withered') {
|
| 1053 |
+
tileElement.className += ' bg-yellow-950';
|
| 1054 |
+
tileElement.innerHTML = `
|
| 1055 |
+
<i class="fas fa-leaf text-yellow-700 text-2xl"></i>
|
| 1056 |
+
<div class="absolute inset-0 bg-gradient-to-br from-transparent to-yellow-950 opacity-30"></div>
|
| 1057 |
+
`;
|
| 1058 |
+
}
|
| 1059 |
+
}
|
| 1060 |
+
|
| 1061 |
+
// Highlight player position
|
| 1062 |
+
if ((isManual && index === gameState.playerPosition) ||
|
| 1063 |
+
(!isManual && index === gameState.botPosition)) {
|
| 1064 |
+
tileElement.classList.add('tile-highlight');
|
| 1065 |
+
|
| 1066 |
+
const avatar = document.createElement('div');
|
| 1067 |
+
avatar.className = `player-avatar absolute -top-2 -right-2 w-8 h-8 rounded-full flex items-center justify-center text-sm font-bold ${
|
| 1068 |
+
isManual ? 'bg-blue-500' : 'bg-purple-500'
|
| 1069 |
+
}`;
|
| 1070 |
+
avatar.innerHTML = isManual ? '<i class="fas fa-user"></i>' : '<i class="fas fa-robot"></i>';
|
| 1071 |
+
|
| 1072 |
+
if ((isManual && gameState.phase === "manual") || (!isManual && gameState.phase === "bot")) {
|
| 1073 |
+
avatar.classList.add('active');
|
| 1074 |
+
}
|
| 1075 |
+
|
| 1076 |
+
tileElement.appendChild(avatar);
|
| 1077 |
+
}
|
| 1078 |
+
|
| 1079 |
+
container.appendChild(tileElement);
|
| 1080 |
+
});
|
| 1081 |
+
}
|
| 1082 |
+
|
| 1083 |
+
// Start Timer
|
| 1084 |
+
function startTimer() {
|
| 1085 |
+
if (gameState.timerInterval) {
|
| 1086 |
+
clearInterval(gameState.timerInterval);
|
| 1087 |
+
}
|
| 1088 |
+
|
| 1089 |
+
gameState.timerInterval = setInterval(() => {
|
| 1090 |
+
if (!gameState.isPaused) {
|
| 1091 |
+
gameState.timeLeft--;
|
| 1092 |
+
elements.timer.textContent = formatTime(gameState.timeLeft);
|
| 1093 |
+
|
| 1094 |
+
// Update progress bar
|
| 1095 |
+
const currentLevel = gameState.levels[gameState.currentLevel - 1];
|
| 1096 |
+
const totalTime = gameState.phase === "manual" ? currentLevel.manualTime : currentLevel.botTime;
|
| 1097 |
+
const percentage = ((totalTime - gameState.timeLeft) / totalTime) * 100;
|
| 1098 |
+
elements.progressBar.style.width = `${percentage}%`;
|
| 1099 |
+
|
| 1100 |
+
if (gameState.timeLeft <= 0) {
|
| 1101 |
+
clearInterval(gameState.timerInterval);
|
| 1102 |
+
if (gameState.phase === "manual") {
|
| 1103 |
+
switchToBotPhase();
|
| 1104 |
+
} else {
|
| 1105 |
+
endLevel();
|
| 1106 |
+
}
|
| 1107 |
+
}
|
| 1108 |
+
}
|
| 1109 |
+
}, 1000);
|
| 1110 |
+
}
|
| 1111 |
+
|
| 1112 |
+
// Format Time
|
| 1113 |
+
function formatTime(seconds) {
|
| 1114 |
+
const mins = Math.floor(seconds / 60);
|
| 1115 |
+
const secs = seconds % 60;
|
| 1116 |
+
return `${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`;
|
| 1117 |
+
}
|
| 1118 |
+
|
| 1119 |
+
// Switch to Bot Phase
|
| 1120 |
+
function switchToBotPhase() {
|
| 1121 |
+
gameState.phase = "bot";
|
| 1122 |
+
const currentLevel = gameState.levels[gameState.currentLevel - 1];
|
| 1123 |
+
gameState.timeLeft = currentLevel.botTime;
|
| 1124 |
+
elements.timer.textContent = formatTime(gameState.timeLeft);
|
| 1125 |
+
|
| 1126 |
+
// Reset bot position
|
| 1127 |
+
gameState.botPosition = 0;
|
| 1128 |
+
|
| 1129 |
+
// Update UI
|
| 1130 |
+
updatePhaseBadges();
|
| 1131 |
+
generateFarmGrid(elements.botFarm, currentLevel.tiles, false);
|
| 1132 |
+
|
| 1133 |
+
// Start timer again
|
| 1134 |
+
startTimer();
|
| 1135 |
+
}
|
| 1136 |
+
|
| 1137 |
+
// End Level
|
| 1138 |
+
function endLevel() {
|
| 1139 |
+
clearInterval(gameState.timerInterval);
|
| 1140 |
+
|
| 1141 |
+
// Show results
|
| 1142 |
+
elements.finalManualScore.textContent = gameState.manualScore;
|
| 1143 |
+
elements.finalBotScore.textContent = gameState.botScore;
|
| 1144 |
+
|
| 1145 |
+
if (gameState.botScore > gameState.manualScore) {
|
| 1146 |
+
elements.resultMessage.textContent = "Your Bot Won!";
|
| 1147 |
+
elements.resultMessage.className = "text-xl font-orbitron font-bold text-primary mb-2";
|
| 1148 |
+
} else if (gameState.botScore < gameState.manualScore) {
|
| 1149 |
+
elements.resultMessage.textContent = "Manual Farming Won!";
|
| 1150 |
+
elements.resultMessage.className = "text-xl font-orbitron font-bold text-blue-400 mb-2";
|
| 1151 |
+
} else {
|
| 1152 |
+
elements.resultMessage.textContent = "It's a Tie!";
|
| 1153 |
+
elements.resultMessage.className = "text-xl font-orbitron font-bold text-yellow-400 mb-2";
|
| 1154 |
+
}
|
| 1155 |
+
|
| 1156 |
+
elements.completeModal.classList.remove('hidden');
|
| 1157 |
+
setTimeout(() => {
|
| 1158 |
+
elements.completeModal.classList.add('active');
|
| 1159 |
+
}, 10);
|
| 1160 |
+
}
|
| 1161 |
+
|
| 1162 |
+
// Update UI
|
| 1163 |
+
function updateUI() {
|
| 1164 |
+
// Update current tool display
|
| 1165 |
+
let toolIcon, toolName, toolColor;
|
| 1166 |
+
switch (gameState.currentTool) {
|
| 1167 |
+
case "seeds":
|
| 1168 |
+
toolIcon = '<i class="fas fa-seedling"></i>';
|
| 1169 |
+
toolName = "Seeds";
|
| 1170 |
+
toolColor = 'from-green-500 to-green-600';
|
| 1171 |
+
break;
|
| 1172 |
+
case "water":
|
| 1173 |
+
toolIcon = '<i class="fas fa-tint"></i>';
|
| 1174 |
+
toolName = "Water";
|
| 1175 |
+
toolColor = 'from-blue-400 to-blue-600';
|
| 1176 |
+
break;
|
| 1177 |
+
case "harvest":
|
| 1178 |
+
toolIcon = '<i class="fas fa-sickle"></i>';
|
| 1179 |
+
toolName = "Harvest";
|
| 1180 |
+
toolColor = 'from-yellow-500 to-yellow-600';
|
| 1181 |
+
break;
|
| 1182 |
+
}
|
| 1183 |
+
elements.currentTool.innerHTML = `
|
| 1184 |
+
<div class="w-6 h-6 rounded-full bg-gradient-to-br ${toolColor} flex items-center justify-center">
|
| 1185 |
+
${toolIcon}
|
| 1186 |
+
</div>
|
| 1187 |
+
<span class="font-medium">${toolName}</span>
|
| 1188 |
+
`;
|
| 1189 |
+
}
|
| 1190 |
+
|
| 1191 |
+
// Update Phase Badges
|
| 1192 |
+
function updatePhaseBadges() {
|
| 1193 |
+
if (gameState.phase === "manual") {
|
| 1194 |
+
elements.manualPhaseBadge.textContent = "Phase 1";
|
| 1195 |
+
elements.manualPhaseBadge.className = "bg-blue-900 text-blue-300 px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wider glow-box-secondary";
|
| 1196 |
+
|
| 1197 |
+
elements.botPhaseBadge.textContent = "Phase 2";
|
| 1198 |
+
elements.botPhaseBadge.className = "bg-purple-900 text-purple-300 px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wider glow-box-accent";
|
| 1199 |
+
} else {
|
| 1200 |
+
elements.manualPhaseBadge.textContent = "Phase 2";
|
| 1201 |
+
elements.manualPhaseBadge.className = "bg-purple-900 text-purple-300 px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wider glow-box-accent";
|
| 1202 |
+
|
| 1203 |
+
elements.botPhaseBadge.textContent = "Phase 1";
|
| 1204 |
+
elements.botPhaseBadge.className = "bg-blue-900 text-blue-300 px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wider glow-box-secondary";
|
| 1205 |
+
}
|
| 1206 |
+
}
|
| 1207 |
+
|
| 1208 |
+
// Setup Event Listeners
|
| 1209 |
+
function setupEventListeners() {
|
| 1210 |
+
// Keyboard Controls
|
| 1211 |
+
document.addEventListener('keydown', (e) => {
|
| 1212 |
+
if (gameState.phase !== "manual" || gameState.isPaused) return;
|
| 1213 |
+
|
| 1214 |
+
const currentLevel = gameState.levels[gameState.currentLevel - 1];
|
| 1215 |
+
const gridSize = Math.sqrt(currentLevel.size);
|
| 1216 |
+
|
| 1217 |
+
switch (e.key.toLowerCase()) {
|
| 1218 |
+
case 'w':
|
| 1219 |
+
if (gameState.playerPosition - gridSize >= 0) {
|
| 1220 |
+
gameState.playerPosition -= gridSize;
|
| 1221 |
+
generateFarmGrid(elements.manualFarm, currentLevel.tiles, true);
|
| 1222 |
+
}
|
| 1223 |
+
break;
|
| 1224 |
+
case 'a':
|
| 1225 |
+
if (gameState.playerPosition % gridSize !== 0) {
|
| 1226 |
+
gameState.playerPosition--;
|
| 1227 |
+
generateFarmGrid(elements.manualFarm, currentLevel.tiles, true);
|
| 1228 |
+
}
|
| 1229 |
+
break;
|
| 1230 |
+
case 's':
|
| 1231 |
+
if (gameState.playerPosition + gridSize < currentLevel.size) {
|
| 1232 |
+
gameState.playerPosition += gridSize;
|
| 1233 |
+
generateFarmGrid(elements.manualFarm, currentLevel.tiles, true);
|
| 1234 |
+
}
|
| 1235 |
+
break;
|
| 1236 |
+
case 'd':
|
| 1237 |
+
if (gameState.playerPosition % gridSize !== gridSize - 1) {
|
| 1238 |
+
gameState.playerPosition++;
|
| 1239 |
+
generateFarmGrid(elements.manualFarm, currentLevel.tiles, true);
|
| 1240 |
+
}
|
| 1241 |
+
break;
|
| 1242 |
+
case 'e':
|
| 1243 |
+
interactWithTile();
|
| 1244 |
+
break;
|
| 1245 |
+
case 'q':
|
| 1246 |
+
switchTool();
|
| 1247 |
+
break;
|
| 1248 |
+
}
|
| 1249 |
+
});
|
| 1250 |
+
|
| 1251 |
+
// Code Block Drag and Drop
|
| 1252 |
+
elements.codeBlocks.querySelectorAll('.code-block').forEach(block => {
|
| 1253 |
+
block.addEventListener('dragstart', (e) => {
|
| 1254 |
+
e.dataTransfer.setData('text/plain', block.textContent);
|
| 1255 |
+
e.dataTransfer.setData('action', block.dataset.action);
|
| 1256 |
+
block.style.opacity = '0.4';
|
| 1257 |
+
});
|
| 1258 |
+
|
| 1259 |
+
block.addEventListener('dragend', () => {
|
| 1260 |
+
block.style.opacity = '1';
|
| 1261 |
+
});
|
| 1262 |
+
});
|
| 1263 |
+
|
| 1264 |
+
elements.codeArea.addEventListener('dragover', (e) => {
|
| 1265 |
+
e.preventDefault();
|
| 1266 |
+
elements.codeArea.classList.add('border-accent');
|
| 1267 |
+
elements.codeArea.classList.remove('border-gray-700');
|
| 1268 |
+
});
|
| 1269 |
+
|
| 1270 |
+
elements.codeArea.addEventListener('dragleave', () => {
|
| 1271 |
+
elements.codeArea.classList.remove('border-accent');
|
| 1272 |
+
elements.codeArea.classList.add('border-gray-700');
|
| 1273 |
+
});
|
| 1274 |
+
|
| 1275 |
+
elements.codeArea.addEventListener('drop', (e) => {
|
| 1276 |
+
e.preventDefault();
|
| 1277 |
+
elements.codeArea.classList.remove('border-accent');
|
| 1278 |
+
elements.codeArea.classList.add('border-gray-700');
|
| 1279 |
+
|
| 1280 |
+
const action = e.dataTransfer.getData('action');
|
| 1281 |
+
const text = e.dataTransfer.getData('text/plain');
|
| 1282 |
+
|
| 1283 |
+
// Remove the placeholder if it exists
|
| 1284 |
+
if (elements.codeArea.querySelector('.text-gray-600')) {
|
| 1285 |
+
elements.codeArea.innerHTML = '';
|
| 1286 |
+
}
|
| 1287 |
+
|
| 1288 |
+
const newBlock = document.createElement('div');
|
| 1289 |
+
newBlock.className = 'code-block';
|
| 1290 |
+
newBlock.textContent = text;
|
| 1291 |
+
newBlock.dataset.action = action;
|
| 1292 |
+
newBlock.draggable = true;
|
| 1293 |
+
|
| 1294 |
+
newBlock.addEventListener('dragstart', (dragEvent) => {
|
| 1295 |
+
dragEvent.dataTransfer.setData('text/plain', newBlock.textContent);
|
| 1296 |
+
dragEvent.dataTransfer.setData('action', newBlock.dataset.action);
|
| 1297 |
+
newBlock.style.opacity = '0.4';
|
| 1298 |
+
});
|
| 1299 |
+
|
| 1300 |
+
newBlock.addEventListener('dragend', () => {
|
| 1301 |
+
newBlock.style.opacity = '1';
|
| 1302 |
+
});
|
| 1303 |
+
|
| 1304 |
+
elements.codeArea.appendChild(newBlock);
|
| 1305 |
+
});
|
| 1306 |
+
|
| 1307 |
+
// Run Bot Button
|
| 1308 |
+
elements.runBotBtn.addEventListener('click', () => {
|
| 1309 |
+
if (gameState.phase !== "bot") return;
|
| 1310 |
+
|
| 1311 |
+
const commands = Array.from(elements.codeArea.querySelectorAll('.code-block')).map(block => block.dataset.action);
|
| 1312 |
+
executeBotCommands(commands);
|
| 1313 |
+
});
|
| 1314 |
+
|
| 1315 |
+
// Reset Bot Button
|
| 1316 |
+
elements.resetBotBtn.addEventListener('click', () => {
|
| 1317 |
+
elements.codeArea.innerHTML = `
|
| 1318 |
+
<div class="text-gray-600 text-sm flex items-center justify-center h-full">
|
| 1319 |
+
<i class="fas fa-arrow-up mr-2"></i>
|
| 1320 |
+
Drag code blocks here
|
| 1321 |
+
</div>
|
| 1322 |
+
`;
|
| 1323 |
+
});
|
| 1324 |
+
|
| 1325 |
+
// Pause Button
|
| 1326 |
+
elements.pauseBtn.addEventListener('click', () => {
|
| 1327 |
+
gameState.isPaused = true;
|
| 1328 |
+
elements.pauseModal.classList.remove('hidden');
|
| 1329 |
+
setTimeout(() => {
|
| 1330 |
+
elements.pauseModal.classList.add('active');
|
| 1331 |
+
}, 10);
|
| 1332 |
+
});
|
| 1333 |
+
|
| 1334 |
+
// Resume Button
|
| 1335 |
+
elements.resumeBtn.addEventListener('click', () => {
|
| 1336 |
+
gameState.isPaused = false;
|
| 1337 |
+
elements.pauseModal.classList.remove('active');
|
| 1338 |
+
setTimeout(() => {
|
| 1339 |
+
elements.pauseModal.classList.add('hidden');
|
| 1340 |
+
}, 300);
|
| 1341 |
+
});
|
| 1342 |
+
|
| 1343 |
+
// Restart Button
|
| 1344 |
+
elements.restartBtn.addEventListener('click', () => {
|
| 1345 |
+
elements.pauseModal.classList.remove('active');
|
| 1346 |
+
setTimeout(() => {
|
| 1347 |
+
elements.pauseModal.classList.add('hidden');
|
| 1348 |
+
}, 300);
|
| 1349 |
+
setTimeout(() => {
|
| 1350 |
+
loadLevel(gameState.currentLevel);
|
| 1351 |
+
}, 350);
|
| 1352 |
+
});
|
| 1353 |
+
|
| 1354 |
+
// Menu Button
|
| 1355 |
+
elements.menuBtn.addEventListener('click', () => {
|
| 1356 |
+
// In a full game, this would return to main menu
|
| 1357 |
+
alert("Returning to main menu...");
|
| 1358 |
+
});
|
| 1359 |
+
|
| 1360 |
+
// Quit Button
|
| 1361 |
+
elements.quitBtn.addEventListener('click', () => {
|
| 1362 |
+
if (confirm("Are you sure you want to quit?")) {
|
| 1363 |
+
window.close();
|
| 1364 |
+
}
|
| 1365 |
+
});
|
| 1366 |
+
|
| 1367 |
+
// Next Level Button
|
| 1368 |
+
elements.nextLevelBtn.addEventListener('click', () => {
|
| 1369 |
+
elements.completeModal.classList.remove('active');
|
| 1370 |
+
setTimeout(() => {
|
| 1371 |
+
elements.completeModal.classList.add('hidden');
|
| 1372 |
+
}, 300);
|
| 1373 |
+
|
| 1374 |
+
gameState.currentLevel++;
|
| 1375 |
+
if (gameState.currentLevel > gameState.levels.length) {
|
| 1376 |
+
gameState.currentLevel = 1;
|
| 1377 |
+
}
|
| 1378 |
+
|
| 1379 |
+
setTimeout(() => {
|
| 1380 |
+
loadLevel(gameState.currentLevel);
|
| 1381 |
+
}, 350);
|
| 1382 |
+
});
|
| 1383 |
+
|
| 1384 |
+
// Retry Button
|
| 1385 |
+
elements.retryBtn.addEventListener('click', () => {
|
| 1386 |
+
elements.completeModal.classList.remove('active');
|
| 1387 |
+
setTimeout(() => {
|
| 1388 |
+
elements.completeModal.classList.add('hidden');
|
| 1389 |
+
}, 300);
|
| 1390 |
+
|
| 1391 |
+
setTimeout(() => {
|
| 1392 |
+
loadLevel(gameState.currentLevel);
|
| 1393 |
+
}, 350);
|
| 1394 |
+
});
|
| 1395 |
+
|
| 1396 |
+
// Level Select Button
|
| 1397 |
+
elements.levelSelectBtn.addEventListener('click', () => {
|
| 1398 |
+
// In a full game, this would show level selection
|
| 1399 |
+
alert("Showing level selection...");
|
| 1400 |
+
});
|
| 1401 |
+
|
| 1402 |
+
// Hint Button
|
| 1403 |
+
elements.hintBtn.addEventListener('click', () => {
|
| 1404 |
+
const currentLevel = gameState.levels[gameState.currentLevel - 1];
|
| 1405 |
+
elements.hintText.textContent = currentLevel.hint;
|
| 1406 |
+
elements.hintModal.classList.remove('hidden');
|
| 1407 |
+
setTimeout(() => {
|
| 1408 |
+
elements.hintModal.classList.add('active');
|
| 1409 |
+
}, 10);
|
| 1410 |
+
});
|
| 1411 |
+
|
| 1412 |
+
// Close Hint Button
|
| 1413 |
+
elements.closeHintBtn.addEventListener('click', () => {
|
| 1414 |
+
elements.hintModal.classList.remove('active');
|
| 1415 |
+
setTimeout(() => {
|
| 1416 |
+
elements.hintModal.classList.add('hidden');
|
| 1417 |
+
}, 300);
|
| 1418 |
+
});
|
| 1419 |
+
|
| 1420 |
+
// Sound Button
|
| 1421 |
+
elements.soundBtn.addEventListener('click', () => {
|
| 1422 |
+
gameState.soundEnabled = !gameState.soundEnabled;
|
| 1423 |
+
elements.soundBtn.innerHTML = gameState.soundEnabled ?
|
| 1424 |
+
'<i class="fas fa-volume-up"></i>' :
|
| 1425 |
+
'<i class="fas fa-volume-mute"></i>';
|
| 1426 |
+
|
| 1427 |
+
// In a full game, this would toggle sound effects
|
| 1428 |
+
});
|
| 1429 |
+
|
| 1430 |
+
// Fullscreen Button
|
| 1431 |
+
elements.fullscreenBtn.addEventListener('click', () => {
|
| 1432 |
+
if (!document.fullscreenElement) {
|
| 1433 |
+
document.documentElement.requestFullscreen();
|
| 1434 |
+
} else {
|
| 1435 |
+
if (document.exitFullscreen) {
|
| 1436 |
+
document.exitFullscreen();
|
| 1437 |
+
}
|
| 1438 |
+
}
|
| 1439 |
+
});
|
| 1440 |
+
}
|
| 1441 |
+
|
| 1442 |
+
// Interact with Tile
|
| 1443 |
+
function interactWithTile() {
|
| 1444 |
+
const currentLevel = gameState.levels[gameState.currentLevel - 1];
|
| 1445 |
+
const tile = currentLevel.tiles[gameState.playerPosition];
|
| 1446 |
+
|
| 1447 |
+
if (tile.obstacle) return;
|
| 1448 |
+
|
| 1449 |
+
switch (gameState.currentTool) {
|
| 1450 |
+
case "seeds":
|
| 1451 |
+
if (tile.state === "dry" || tile.state === "wet") {
|
| 1452 |
+
tile.state = "planted";
|
| 1453 |
+
gameState.manualScore += 10;
|
| 1454 |
+
elements.manualScore.textContent = gameState.manualScore;
|
| 1455 |
+
generateFarmGrid(elements.manualFarm, currentLevel.tiles, true);
|
| 1456 |
+
}
|
| 1457 |
+
break;
|
| 1458 |
+
case "water":
|
| 1459 |
+
if (tile.state === "dry") {
|
| 1460 |
+
tile.state = "wet";
|
| 1461 |
+
gameState.manualScore += 5;
|
| 1462 |
+
elements.manualScore.textContent = gameState.manualScore;
|
| 1463 |
+
generateFarmGrid(elements.manualFarm, currentLevel.tiles, true);
|
| 1464 |
+
} else if (tile.state === "planted") {
|
| 1465 |
+
// Plant grows faster when watered
|
| 1466 |
+
setTimeout(() => {
|
| 1467 |
+
tile.state = "grown";
|
| 1468 |
+
generateFarmGrid(elements.manualFarm, currentLevel.tiles, true);
|
| 1469 |
+
}, 1000);
|
| 1470 |
+
}
|
| 1471 |
+
break;
|
| 1472 |
+
case "harvest":
|
| 1473 |
+
if (tile.state === "grown") {
|
| 1474 |
+
tile.state = "dry";
|
| 1475 |
+
gameState.manualScore += 20;
|
| 1476 |
+
elements.manualScore.textContent = gameState.manualScore;
|
| 1477 |
+
generateFarmGrid(elements.manualFarm, currentLevel.tiles, true);
|
| 1478 |
+
} else if (tile.state === "planted") {
|
| 1479 |
+
tile.state = "withered";
|
| 1480 |
+
gameState.manualScore -= 10;
|
| 1481 |
+
elements.manualScore.textContent = gameState.manualScore;
|
| 1482 |
+
generateFarmGrid(elements.manualFarm, currentLevel.tiles, true);
|
| 1483 |
+
}
|
| 1484 |
+
break;
|
| 1485 |
+
}
|
| 1486 |
+
}
|
| 1487 |
+
|
| 1488 |
+
// Switch Tool
|
| 1489 |
+
function switchTool() {
|
| 1490 |
+
switch (gameState.currentTool) {
|
| 1491 |
+
case "seeds":
|
| 1492 |
+
gameState.currentTool = "water";
|
| 1493 |
+
break;
|
| 1494 |
+
case "water":
|
| 1495 |
+
gameState.currentTool = "harvest";
|
| 1496 |
+
break;
|
| 1497 |
+
case "harvest":
|
| 1498 |
+
gameState.currentTool = "seeds";
|
| 1499 |
+
break;
|
| 1500 |
+
}
|
| 1501 |
+
updateUI();
|
| 1502 |
+
}
|
| 1503 |
+
|
| 1504 |
+
// Execute Bot Commands
|
| 1505 |
+
function executeBotCommands(commands) {
|
| 1506 |
+
if (commands.length === 0) return;
|
| 1507 |
+
|
| 1508 |
+
const currentLevel = gameState.levels[gameState.currentLevel - 1];
|
| 1509 |
+
let commandIndex = 0;
|
| 1510 |
+
|
| 1511 |
+
const executeNextCommand = () => {
|
| 1512 |
+
if (commandIndex >= commands.length || gameState.timeLeft <= 0) {
|
| 1513 |
+
return;
|
| 1514 |
+
}
|
| 1515 |
+
|
| 1516 |
+
const command = commands[commandIndex];
|
| 1517 |
+
const tile = currentLevel.tiles[gameState.botPosition];
|
| 1518 |
+
|
| 1519 |
+
switch (command) {
|
| 1520 |
+
case "move-right":
|
| 1521 |
+
if (gameState.botPosition % Math.sqrt(currentLevel.size) !== Math.sqrt(currentLevel.size) - 1) {
|
| 1522 |
+
gameState.botPosition++;
|
| 1523 |
+
}
|
| 1524 |
+
break;
|
| 1525 |
+
case "move-left":
|
| 1526 |
+
if (gameState.botPosition % Math.sqrt(currentLevel.size) !== 0) {
|
| 1527 |
+
gameState.botPosition--;
|
| 1528 |
+
}
|
| 1529 |
+
break;
|
| 1530 |
+
case "move-up":
|
| 1531 |
+
if (gameState.botPosition - Math.sqrt(currentLevel.size) >= 0) {
|
| 1532 |
+
gameState.botPosition -= Math.sqrt(currentLevel.size);
|
| 1533 |
+
}
|
| 1534 |
+
break;
|
| 1535 |
+
case "move-down":
|
| 1536 |
+
if (gameState.botPosition + Math.sqrt(currentLevel.size) < currentLevel.size) {
|
| 1537 |
+
gameState.botPosition += Math.sqrt(currentLevel.size);
|
| 1538 |
+
}
|
| 1539 |
+
break;
|
| 1540 |
+
case "plant":
|
| 1541 |
+
if (!tile.obstacle && (tile.state === "dry" || tile.state === "wet")) {
|
| 1542 |
+
tile.state = "planted";
|
| 1543 |
+
gameState.botScore += 10;
|
| 1544 |
+
elements.botScore.textContent = gameState.botScore;
|
| 1545 |
+
}
|
| 1546 |
+
break;
|
| 1547 |
+
case "water":
|
| 1548 |
+
if (!tile.obstacle && tile.state === "dry") {
|
| 1549 |
+
tile.state = "wet";
|
| 1550 |
+
gameState.botScore += 5;
|
| 1551 |
+
elements.botScore.textContent = gameState.botScore;
|
| 1552 |
+
} else if (!tile.obstacle && tile.state === "planted") {
|
| 1553 |
+
// Plant grows faster when watered
|
| 1554 |
+
setTimeout(() => {
|
| 1555 |
+
tile.state = "grown";
|
| 1556 |
+
generateFarmGrid(elements.botFarm, currentLevel.tiles, false);
|
| 1557 |
+
}, 800);
|
| 1558 |
+
}
|
| 1559 |
+
break;
|
| 1560 |
+
case "harvest":
|
| 1561 |
+
if (!tile.obstacle && tile.state === "grown") {
|
| 1562 |
+
tile.state = "dry";
|
| 1563 |
+
gameState.botScore += 20;
|
| 1564 |
+
elements.botScore.textContent = gameState.botScore;
|
| 1565 |
+
} else if (!tile.obstacle && tile.state === "planted") {
|
| 1566 |
+
tile.state = "withered";
|
| 1567 |
+
gameState.botScore -= 10;
|
| 1568 |
+
elements.botScore.textContent = gameState.botScore;
|
| 1569 |
+
}
|
| 1570 |
+
break;
|
| 1571 |
+
case "wait":
|
| 1572 |
+
// Just delay the next command
|
| 1573 |
+
break;
|
| 1574 |
+
}
|
| 1575 |
+
|
| 1576 |
+
generateFarmGrid(elements.botFarm, currentLevel.tiles, false);
|
| 1577 |
+
commandIndex++;
|
| 1578 |
+
|
| 1579 |
+
if (commandIndex < commands.length) {
|
| 1580 |
+
setTimeout(executeNextCommand, 800);
|
| 1581 |
+
}
|
| 1582 |
+
};
|
| 1583 |
+
|
| 1584 |
+
executeNextCommand();
|
| 1585 |
+
}
|
| 1586 |
+
|
| 1587 |
+
// Initialize the game when DOM is loaded
|
| 1588 |
+
document.addEventListener('DOMContentLoaded', initGame);
|
| 1589 |
+
</script>
|
| 1590 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=LukasBe/robofarm-showdown" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 1591 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🧠 **Game Concept Specification: RoboFarm Showdown** ## 🎮 Title **RoboFarm Showdown** **Tagline**: *“Harvest or Be Harvested!”* --- ## 🎯 Objective Introduce high school students to programming by engaging them in a split-screen farming simulation competition. Players **start by manually performing tasks**, but as levels get harder, they must **program a robot** (agent) to do the same tasks **faster and smarter**. --- ## 🧩 Game Structure ### 🕹️ **Split-Screen View** - **Left Panel**: Manual Gameplay (Player-controlled) - **Right Panel**: RoboAgent Programming (Bot-controlled) Each level is played in **two phases**: 1. **Manual Phase**: Player performs farming tasks with keyboard/mouse. 2. **Bot Phase**: Player submits a program that controls a RoboAgent to complete the same tasks. --- ## 📈 Level Progression | Level | Complexity | Manual Advantage | Programming Advantage | |-------|------------|------------------|------------------------| | 1-2 | Very Easy | ✅ | ❌ | | 3-4 | Easy | ✅ | ⚠️ (emerging) | | 5-6 | Moderate | ⚠️ | ✅ | | 7-8 | Hard | ❌ | ✅✅ | | 9-10 | Exponential | ❌❌ | ✅✅✅ | --- ## 🧑🌾 Game Elements ### 🔷 Grid Layout - 10x10 grid (scalable with difficulty) - Tile types: - **Empty Soil** - **Planted Crop** - **Ripe Crop** - **Watered Soil** - **Withered Crop** - **Obstacle (rock/fence)** ### 📦 Objects & Actions - **Crop Seeds** - **Water Bucket** - **Compost Bin** - **Basket (for harvested crops)** ### 🎮 Manual Controls - Arrow keys/WASD = Move - E = Interact (plant, harvest, water) - Q = Pick up/drop tool - Space = Use tool - R = Refill water ### 🤖 RoboAgent Programming - Programming is done in a block-based language (e.g., Blockly) or simple Python/JS interface. - Available commands: - `move(direction)` - `plant()` - `harvest()` - `water()` - `pickup(tool)` - `use()` - `if`, `while`, `for`, `function()` --- ## 🏆 Scoring System | Action | Points | |------------------|---------| | Plant crop | +10 | | Water plant | +5 | | Harvest crop | +20 | | Withered crop | -10 | | Incorrect action | -5 | | Unused time | +0.1/sec| - **Total score per phase** = Sum of actions + efficiency bonus - Final score for a level = **Manual score vs. RoboAgent score** --- ## 🧠 Educational Focus ### 👨🏫 Programming Concepts Introduced - Sequences - Conditionals (`if`) - Loops (`while`, `for`) - Functions and modular code - Efficiency and refactoring ### 🏁 Outcome Students realize that **code scales better than manual action** as complexity grows. They develop an appreciation for **automation, logic, and optimization**. --- ## 🧪 Example Level ### Level 1 – “Patch of Dirt” - 4 tiles, all require planting and watering. - Manual phase: takes ~10 seconds. - Bot phase: student writes: ```python move("right") plant() water() move("right") plant() water() ``` - Both phases roughly equal in score. --- ## 🚀 Advanced Features (Optional for MVP) ### 🧬 Random Weather System - Rain = auto-watering - Drought = crops wither faster - Frost = slows movement ### 🧱 Obstacles and Pests - Random tiles blocked by rocks or fences - Birds steal unharvested crops after time X ### 🧠 Bot Arena (for final level) - Players pit their best bot against others in an automated farming arena with the same seed state. - Fastest, most efficient bot wins. --- ## 🖥️ Technical Stack Suggestions ### Frontend - HTML/CSS/JavaScript (React preferred) - Phaser.js or Pixi.js for game rendering ### Backend (if needed) - Node.js (or Python Flask) - WebSocket for live sync - MongoDB or Firebase for leaderboard ### Programming Interface - **Blockly** for drag-n-drop beginners - **Python Lite** for more advanced learners - Sandbox security for student-submitted code --- ## 💡 Implementation Tips - Offer “code hint” buttons for each level. - Let players record their manual runs and visualize bot-vs-man replay side-by-side. - Include a “simulate” mode before submitting bot code.
|
| 2 |
+
As a game designer transform the entire experience into a game UI with easy intuitive operation and fun to play mechanics.
|
| 3 |
+
Act as world class game UI/UX designer and make it a 1000 times better! award winning UI/UX Design.
|