Colony Defenders 2

Seele01-Flash
By
Colony Defenders 2 is an engaging sci-fi tower defense game where you protect mining colonies from alien invasions across the galaxy. Strategic planning and tactical tower placement are key to survival.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Colony Defenders 2". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly Sci-Fi Industrial aesthetic. The setting is a hostile, resource-rich alien planet (Mars-like red/orange terrain with rocky obstacles). * **Camera:** Fixed Isometric view (OrthographicCamera) optimized for mobile screens to ensure consistent scale across devices. * **Key Models:** * **The Base (Core):** A central mining drill/reactor structure with a health bar. It pulses with blue light. * **Towers:** Three distinct types represented by simple geometric assemblies: * *Vulcan Turret:* Rapid-fire, yellow barrel (cylinder). * *Missile Launcher:* Slow, splash damage, red top (box). * *Laser Tower:* High damage, purple crystal top (cone). * **Enemies:** "The Swarm". Low-poly insectoid aliens (green/black textures). Use `THREE.InstancedMesh` for enemies to handle "swarm" quantities with high performance on mobile GPUs. * **Environment:** A grid-based map with a predefined winding path for enemies. The ground should use a tiling texture to save memory. * **Performance:** Use simple Lambert materials (non-PBR) for better battery life. Limit real-time shadows to the main structure only. ### 2. Audio Requirements * **BGM:** A tense, rhythmic industrial-electronic loop. It should sound mechanical and gritty, reflecting the "Alpha Mining Company" atmosphere. * **Sound Effects (SFX):** * *Build/Upgrade:* A heavy pneumatic wrench or servo sound. * *Shooting:* distinct sounds for each tower (Rat-a-tat for Vulcan, "Thump" for Missile, High-pitch buzz for Laser). * *Enemy Death:* Squishy, organic splat sounds. * *Base Hit:* A metallic clang and an alarm siren. ### 3. Gameplay Loop * **Core Mechanism:** Traditional Tower Defense. Enemies spawn from a "Nest" point and follow a fixed path to the "Mining Base". * **Economy:** The player starts with an initial budget. Currency ("Ore") is earned by killing enemies and automatically generated in small amounts by the Mining Base every 5 seconds. * **Construction:** Tapping an empty grid tile along the path opens a radial build menu to place towers. Tapping an existing tower allows upgrading or selling. * **Waves:** The game progresses in waves of increasing difficulty. * *Wave 1-3:* Small, fast enemies (Zerglings). * *Wave 4+:* Introduction of heavy "Tank" aliens (slow, high HP). * **Win/Loss:** * *Loss:* Base HP reaches 0. * *Win:* Survive all defined waves (e.g., 10 waves). ### 4. Mobile Controls & Interaction * **Touch Interaction:** * **Tap:** Use Raycaster for precise tile selection. Tapping a tile highlights it and shows the Build UI. * **UI Layout:** All interactive buttons (Build, Upgrade, Sell, Start Wave) must be placed in the bottom 25% of the screen for thumb accessibility. * **Pan/Zoom:** One-finger drag to pan the camera map. Two-finger pinch to zoom in/out (clamped range). * **Orientation:** Landscape mode preferred, but the UI should be responsive (use percentages, not fixed pixels). * **Feedback:** * **Visual:** When a tower shoots, show simple line renderers (lasers) or small sphere projectiles. When an enemy is hit, flash their material white for 1 frame. * **Haptic:** Trigger `navigator.vibrate(10)` on explosion or base damage (if supported). * **UI Elements:** * Top Left: Ore (Currency) Counter & Wave Counter. * Top Center: Base Health Bar (Green to Red gradient). * Bottom Right: "Next Wave" button (Call to Action color: Orange). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Colony Defenders 2

Colony Defenders 2 is a thrilling science fiction tower defense strategy game that puts you in charge of defending valuable mining operations across distant planets. As an employee of Alpha Mining Company, your mission is to protect resource-rich colonies from relentless alien attacks using strategic tower placement and tactical combat decisions.

This free-to-play browser game combines classic tower defense mechanics with an immersive sci-fi storyline, offering hours of strategic gameplay without requiring any downloads or installations.

Core Features

Strategic Tower Defense Gameplay

Colony Defenders 2 delivers authentic tower defense experience with multiple layers of strategy. Players must carefully position defensive structures to create effective kill zones while managing resources and upgrading equipment to handle increasingly dangerous alien threats.

Sci-Fi Mining Colony Setting

The game's unique space mining theme sets it apart from traditional fantasy tower defense games. Each level represents a different planetary mining operation under attack, creating diverse tactical challenges across various alien worlds.

Progressive Difficulty System

As you advance through the galaxy, alien swarms become more sophisticated and dangerous. The game introduces new enemy types, enhanced alien abilities, and complex attack patterns that require adaptive strategies and careful resource management.

Multiple Defense Options

Choose from various defensive towers and weapons, each with unique capabilities against different alien species. Upgrade paths allow for customization based on your preferred defensive strategy and the specific threats you're facing.

Gameplay Mechanics

Tower Placement Strategy

Success in Colony Defenders 2 requires understanding optimal tower positioning. Create chokepoints, establish overlapping fields of fire, and use terrain advantages to maximize your defensive efficiency against alien hordes.

Resource Management

Balance spending between new tower construction and upgrading existing defenses. Smart resource allocation becomes increasingly critical as alien attacks intensify and mining operations expand.

Wave-Based Combat

Alien attacks come in waves, giving players time to prepare and adjust strategies between assaults. Use these intervals wisely to reinforce weak points and prepare for the next invasion wave.

Operation Guide

Colony Defenders 2 features intuitive mouse-based controls perfect for strategy gaming:

  • Mouse Click : Select towers, place defenses, and navigate menus
  • Drag and Drop : Position towers in optimal defensive locations
  • Right Click : Access tower upgrade options and special abilities
  • Keyboard Shortcuts : Quick access to different tower types and game speed controls

The game interface provides clear information about incoming alien waves, available resources, and tower statistics to help you make informed tactical decisions.

Why Play Colony Defenders 2

Colony Defenders 2 offers exceptional value for strategy game enthusiasts. The game is completely free to play with no hidden costs or pay-to-win mechanics. Its browser-based design means you can enjoy high-quality tower defense gameplay on any device without downloads or installations.

The sci-fi setting provides a fresh take on the tower defense genre, while the progressive difficulty ensures both newcomers and experienced players will find appropriate challenges. Regular gameplay sessions help develop strategic thinking skills and tactical planning abilities.

Whether you're a tower defense veteran or new to strategy games, Colony Defenders 2 provides an accessible yet deep gaming experience that rewards careful planning and tactical execution.

Frequently Asked Questions (FAQ)