Xeno Tactic

Seele01-Flash
By
Xeno Tactic is a classic tower defense game where strategic planning meets intense action. Build defensive structures and towers to prevent alien enemies from crossing your base in this engaging browser-based strategy game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Xeno Tactic: Mobile Defense". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Industrial Sci-Fi aesthetic. Use a dark, moody color palette (gunmetal grey, deep teal, neon green) inspired by the provided logo. * **Perspective**: High-angle Top-Down (Orthographic Camera recommended) to ensure precise grid placement on small screens. * **Environment**: A flat, tiled grid representing a metallic base floor. The "Start" (Spawn) zone should be glowing Green, and the "End" (Base) zone glowing Red. * **Towers (The "Walls")**: Low-poly geometric turrets. * *Vulcan Turret*: fast rotation, small barrel. * *Plasma Cannon*: slow rotation, glowing energy core. * *Visual Cues*: Towers must look solid and blocky, acting as physical obstacles for the maze. * **Enemies (Xenos)**: Instanced meshes for performance. * *Scout*: Small, fast, tetrahedral shapes (green). * *Tank*: Large, slow, cubic shapes (red). * **Performance**: Use `THREE.InstancedMesh` for all repetitive objects (floor tiles, enemies, projectiles) to maintain 60FPS on mobile browsers. Use simple Phong materials rather than expensive PBR. ### 2. Audio Requirements * **BGM**: A loop of 2000s-era Industrial Techno or Dark Synthwave. Driving bassline with metallic percussion to induce a sense of urgency. * **Sound Effects**: * *Placement*: A heavy metallic "Clank" or hydraulic hiss when a tower is built. * *Weaponry*: Varied firing sounds (rapid machine gun fire, heavy energy pulse). * *Impact*: Squishy organic sounds when aliens are hit/destroyed. * *Error*: A low-pitch buzz when the player tries to build in an invalid spot (blocking the path completely). ### 3. Gameplay Loop * **Maze Building Mechanic**: This is the core logic. There is no fixed path. The terrain is an open grid. Placing a tower blocks that grid cell. Enemies must use a pathfinding algorithm (like A*) to calculate the shortest open route from Spawn to End. * **Validation Logic**: The player **cannot** place a tower if it completely blocks the path to the exit. The code must check `isPathPossible()` before allowing a build. * **Wave System**: Enemies spawn in waves. Each wave has higher HP or speed. * **Economy**: Player starts with fixed credits. Killing Xenos grants credits. Building towers costs credits. * **Win/Loss**: Lose lives if an enemy reaches the End. Game Over if lives reach 0. Victory if all waves are cleared. ### 4. Mobile Controls & Interaction * **Orientation**: Landscape mode strictly. * **Camera Controls**: * *Pan*: One-finger drag to move the map. * *Zoom*: Two-finger pinch. * **Building Interaction**: 1. **Select**: Tap a grid cell to highlight it (show a holographic preview of the selected tower). 2. **Confirm**: Tap a "Build" button in the UI (or double-tap the cell) to confirm placement. This prevents accidental builds on small touch screens. * **UI Layout**: * *Bottom HUD*: Large buttons (minimum 48x48px) for selecting Tower Types. * *Top HUD*: Simple text for Money, Lives, and Wave count. * **Feedback**: * Visual: The grid cell turns Red if placement is invalid (insufficient funds or blocking the path). * Haptic: Trigger a short vibration (`navigator.vibrate(20)`) when a tower is successfully placed. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Xeno Tactic is a compelling tower defense game that challenges players to create an impenetrable defense system against waves of alien invaders. This strategic game combines tactical planning with real-time action, requiring you to think ahead and adapt your defensive strategies as enemies become increasingly challenging.

The game features a clean, sci-fi aesthetic with the distinctive "XENO TACTIC" title prominently displayed, setting the tone for an extraterrestrial defense experience. Players must utilize limited resources wisely to build the most effective defensive network possible.

Core Features

Strategic Tower Defense Gameplay

Experience classic tower defense mechanics where positioning and timing are everything. Each decision affects your defensive capabilities, making every tower placement crucial to your survival.

Build and Fortify

Construct walls and defensive towers to create maze-like pathways that slow down enemies and maximize your firepower effectiveness. The building system allows for creative defensive strategies.

Progressive Difficulty

Face increasingly challenging waves of alien enemies, each requiring different tactical approaches. Adapt your strategy as new enemy types appear with unique abilities and resistances.

Browser-Based Convenience

Enjoy immediate access through any web browser without downloads or installations. The game runs smoothly on desktop and laptop computers, making it perfect for quick strategic gaming sessions.

Game Mechanics

Xeno Tactic follows traditional tower defense principles where enemies attempt to traverse your base from one point to another. Your objective is to prevent them from completing this journey by strategically placing defensive structures.

The game requires careful resource management and strategic thinking. You must balance between building walls to direct enemy movement and constructing towers to eliminate threats. Each wave brings new challenges that test your defensive capabilities.

Operation Guide

The game features intuitive controls designed for ease of play:

  • Left-click : Place towers and walls on the battlefield
  • Strategic Planning : Choose optimal locations for maximum defensive coverage
  • Resource Management : Spend your limited funds wisely on the most effective defensive structures

Success requires understanding enemy movement patterns and creating efficient killing zones through smart tower placement and wall construction.

Why Play Xeno Tactic

Xeno Tactic offers the perfect blend of strategy and action for tower defense enthusiasts. The game provides:

  • Free Entertainment : Complete gaming experience at no cost
  • Strategic Depth : Multiple approaches to defensive planning
  • Quick Sessions : Perfect for short gaming breaks or extended play
  • Classic Gameplay : Time-tested tower defense mechanics
  • Accessibility : No downloads required, play instantly in your browser

Whether you're a tower defense veteran or new to the genre, Xeno Tactic provides an engaging challenge that will test your strategic thinking and tactical execution skills.

Frequently Asked Questions (FAQ)