Yorg.io - Multiplayer Tower Defense Strategy Game

Seele01-Flash
By
Yorg.io is an innovative multiplayer tower defense IO game that combines resource management with zombie defense. Build crystal mines, create supply chains, and compete against other players while defending your base from nightly zombie attacks.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Neon Supply-Chain Tower Defense (Yorg.io Clone)". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** A minimalist, high-contrast "Cyber-Grid" aesthetic. Use an Orthographic Camera (top-down view) to replicate the 2D strategy feel within a 3D engine. * **Environment:** A dark, infinite grid background (dark grey/black hex code #1a1a1a). The grid lines should be faint neon blue. * **Models (Low-Poly/Geometric):** * **The Base:** A large, pulsating neon-blue cube. * **Crystal Mines:** Green octahedrons or crystals. * **Iron Mines:** Grey/metallic cubes with rust-colored details. * **Defensive Towers:** Red (Cannons) and Yellow (Lightning) cylinders/cones that track enemies. * **Transporters:** Small nodes that visually connect buildings. * **Supply Lines:** Glowing lines (using `THREE.Line` or slim `TubeGeometry`) connecting buildings to visualize resource flow. * **Zombies:** Simple red or purple spheres/cubes to minimize draw calls. * **Mobile Optimization:** heavily utilize **`THREE.InstancedMesh`** for rendering hundreds of walls, projectiles, and zombies to ensure 60FPS on mobile devices. Use simple Lambert or Phong materials; avoid expensive shadows. ### 2. Audio Requirements * **BGM (Dynamic System):** * **Day Phase:** Calm, rhythmic, minimal synth-wave/lo-fi beats (encourages thinking/building). * **Night Phase:** Tempo increases, bass-heavy, industrial electronic/techno (creates tension). * **SFX:** * **UI:** Soft "click" or "blip" for selecting buildings. * **Building:** A "construction" thud or mechanical whir when placing a tower. * **Combat:** distinct "Pew-pew" for lasers, heavy "Boom" for cannons. * **Resource:** A subtle high-pitched "ding" loop when resources travel through the supply chain. ### 3. Gameplay Loop * **Core Mechanic (Supply Chain):** Unlike standard Tower Defense, towers do not work in isolation. They must be physically connected via "Transporters" back to the Base or Mines. * **Crystal Mines** generate currency -> transported to Base. * **Iron Mines** generate ammo -> transported to Defensive Towers. * If the line is broken, the tower stops shooting. * **Day/Night Cycle:** * **Day:** Safe time. Player builds mines, extends supply lines, places walls and turrets. No enemies. * **Night:** Zombies spawn from the map edges (indicated by warning markers) and pathfind towards the Base. * **Win/Loss:** Game Over if the Base HP reaches 0. Score is based on nights survived. ### 4. Mobile Controls & Interaction * **Camera Controls:** * **Two-finger pinch:** Zoom in/out. * **One-finger drag:** Pan the camera across the map. * **Building Placement (Touch Optimized):** * **Bottom UI Bar:** A scrollable horizontal bar containing building icons (min size 44x44px). * **Tap-to-Select:** Tap an icon in the bar to enter "Build Mode" for that structure. * **Grid Tap:** Tap anywhere on the grid to place the selected building (snap to grid). * **Ghost Mesh:** Show a semi-transparent "ghost" of the building before placement to confirm valid location. * **Interaction:** * **Tap Existing Building:** Opens a small contextual radial menu or pop-up just above the building with "Upgrade" and "Sell" buttons. * **Feedback:** Visual flash (white) on entities when hit. Screen shake (mild) when the Base takes damage. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Yorg.io is a unique tower defense IO game that revolutionizes the classic genre by introducing supply chain mechanics and multiplayer competition. Unlike traditional tower defense games, Yorg.io requires you to build interconnected networks of resource-generating towers to fuel your defensive capabilities. With a 3.2/5 rating from players, this strategic browser game offers an engaging blend of resource management and zombie survival.

Core Features

Yorg.io stands out in the crowded IO gaming space with several distinctive features:

Supply Chain Strategy

The game's core innovation lies in its supply chain system. You cannot simply place defensive towers randomly - each structure must be connected to resource generators like crystal mines and iron foundries. This creates a puzzle-like element where efficient base layout is crucial for survival.

Day-Night Cycle Gameplay

Zombies only attack during nighttime phases, giving you precious daylight hours to expand and fortify your base. This creates natural rhythm and strategic planning opportunities, as you must balance immediate needs with long-term expansion.

Real-Time Multiplayer Competition

Compete against other players on the same server through a live scoreboard system. Watch how your friends and rivals build their bases while focusing on your own survival and growth.

Resource Management Depth

Crystals serve as your primary currency for purchasing and upgrading structures, while iron is essential for creating powerful defensive cannons. Managing both resources efficiently is key to building an impenetrable fortress.

Game Mechanics

Crystal Mining System

Your survival begins with crystal mines - the foundation of your economy. These structures generate the currency needed to expand your base and purchase upgrades. Strategic placement of crystal mines determines your early-game success.

Iron Production Chain

Once you establish crystal income, create iron production facilities to manufacture advanced defensive weapons. Iron-based towers like cannons provide the firepower needed against stronger zombie waves.

Tower Connectivity

All structures must maintain supply line connections to function effectively. This unique mechanic transforms base building into a logistics puzzle, where efficient layouts provide significant advantages.

Operation Guide

Learning Yorg.io is straightforward with intuitive controls:

  • Mouse Controls : Click and drag to place towers and structures on the map grid
  • Shift Key : Hold while clicking to upgrade multiple towers simultaneously for efficient base management
  • Minimap Navigation : Use the corner minimap to monitor zombie approach routes and plan defensive positions
  • Scoreboard Monitoring : Check the upper-right scoreboard to track your performance against other players

Beginner Tutorial

New players should definitely complete the in-game tutorial, which provides comprehensive guidance on supply chains, tower placement, and defensive strategies. The tutorial explains each game mechanic clearly and sets you up for success.

Strategic Tips for Success

  1. Prioritize Crystal Mines Early : Focus on establishing multiple crystal mines before expanding into iron production
  2. Plan Your Layout : Think ahead about supply line connections when placing initial structures
  3. Use Daylight Wisely : Maximize construction and upgrades during safe daylight hours
  4. Monitor the Minimap : Always know where zombies will spawn to prepare adequate defenses
  5. Balance Resources : Maintain steady production of both crystals and iron for sustained growth

Why Play Yorg.io

Yorg.io offers a fresh take on tower defense gaming that appeals to both casual players and strategy enthusiasts. The supply chain mechanics add depth beyond simple tower placement, while multiplayer competition provides ongoing motivation to improve your strategies. The game runs entirely in your browser without downloads, making it instantly accessible wherever you have internet access.

The day-night cycle creates natural tension and pacing, ensuring that every session feels dynamic and engaging. Whether you're competing for the highest score or simply enjoying the puzzle-like base building, Yorg.io delivers a satisfying strategic experience that keeps players coming back for more.

Frequently Asked Questions (FAQ)