Endless Siege

Seele01-Flash
By
Endless Siege is an addictive tower defense game where you strategically deploy and upgrade defense towers to survive endless waves of attacking monsters and ogres.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Endless Siege". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Stylized Fantasy / Low-Poly 3D. The world should look vibrant and cartoonish, similar to "Kingdom Rush" but in 3D. Use bright, saturated colors (sky blue background, lush green terrain). * **Map Generation**: Create a grid-based tile map system (e.g., 10x10 or 15x15). * **Path Tiles**: Dirt or stone texture, representing the route enemies walk. * **Buildable Tiles**: Green grass tiles where players can place towers. * **Scenery**: Simple low-poly rocks, trees, or mountains in the background (non-playable area). * **Entities**: * **Enemies**: Green "Orc" units (can be represented by stylized capsules or low-poly models if available). They must have health bars floating above them. Differentiate "Boss" units by making them 1.5x larger and redder. * **Towers**: 4 distinct geometric styles/colors: 1. **Ballista**: Wood texture, fast projectile (Arrow). 2. **Torch**: Red/Orange, short-range area burn effect. 3. **Cannon**: Black/Grey, slow fire rate, splash damage explosion. 4. **Timewarp**: Blue/Crystal, slows down enemies in range. * **Performance**: Use `THREE.InstancedMesh` for rendering enemies and projectiles to handle "endless" hordes efficiently on mobile devices. Use simple Lambert or Phong materials for performance. ### 2. Audio Requirements * **BGM**: An energetic, orchestral fantasy loop (marching drums, brass sections) that intensifies as waves progress. * **Sound Effects (SFX)**: * **UI**: Crisp "click" for selecting towers, "cash register" sound for spending gold. * **Combat**: "Thwack" for arrows, "Boom" for cannons, "Sizzle" for the torch tower. * **Game Flow**: A loud "War Horn" sound when a new wave starts. * **Feedback**: A low-pitch "thud" or buzzer when the player loses a life. ### 3. Gameplay Loop * **Core Mechanics**: * **Pathfinding**: Enemies spawn at a "Start" point and move along the Path Tiles to the "End" point. If they reach the end, the player loses lives (Hearts). * **Economy**: Player starts with X Gold. Killing enemies grants Gold. Building and Upgrading towers costs Gold. * **Waves**: Endless progression. Each wave increases enemy HP, count, and speed. * **Tower Logic**: * Click a Grass Tile -> Open "Build Menu". * Click an Existing Tower -> Open "Upgrade/Sell Menu" (Upgrade increases Range, Damage, or Fire Rate). * Towers must automatically detect the nearest enemy within `radius` and fire. * **Win/Loss Condition**: The game is endless. The score is the number of waves survived. Game Over triggers when Player Lives reach 0. ### 4. Mobile Controls & Interaction * **Camera Control**: * **Perspective**: Top-down isometric view (OrthographicCamera preferred for clear tile alignment). * **Gestures**: * **One-finger drag**: Pan the camera around the map. * **Two-finger pinch**: Zoom in/out. * **Touch Interaction**: * Implement a `Raycaster` that handles `touchstart` events for precise tile selection. * **UI Layout**: * **HUD (Top)**: Lives, Gold, Wave Count (large text, high contrast). * **Action Bar (Bottom)**: When a tile is selected, show large buttons (minimum 60x60px) for the 4 tower types or Upgrade/Sell options. * **Wave Start**: A prominent "Next Wave" button at the bottom right. * **Feedback**: * **Haptic**: Trigger `navigator.vibrate(50)` when placing a tower or when a life is lost. * **Visual**: Show floating damage numbers (World Space UI) when enemies are hit. Highlight selected tiles with a glowing border. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Endless Siege is a thrilling tower defense strategy game that challenges you to survive endless waves of relentless enemies. This free online game combines strategic planning with fast-paced action, creating an addictive gaming experience that gradually escalates from manageable defense scenarios to complete chaos. With its colorful cartoon graphics and engaging gameplay mechanics, Endless Siege offers hours of strategic entertainment directly in your browser.

Core Features

Strategic Tower Defense Gameplay

Endless Siege delivers classic tower defense action with a modern twist. You'll need to carefully position your defensive turrets in strategic locations to maximize their effectiveness against incoming enemy hordes. The game features a progressive difficulty system that starts manageable but quickly ramps up to intense, chaotic battles.

Four Unique Defense Towers

The game offers four distinct starting defense weapons, each with unique capabilities:

  • Ballista : Powerful projectile weapon perfect for taking down heavily armored enemies
  • Torch : Fire-based defense that excels at area damage and crowd control
  • Cannon : Explosive weapon ideal for dealing massive damage to groups of enemies
  • Timewarp : Special utility tower that slows down enemy movement

Advanced Upgrade System

As you progress through waves, you can level up and upgrade your towers to more technologically advanced versions. These upgraded weapons are significantly more powerful but require substantial gold investment. Strategic resource management becomes crucial as you decide when to upgrade versus when to expand your defenses.

Daily New Content

One of Endless Siege's standout features is the addition of new maps every day, ensuring fresh challenges and preventing the gameplay from becoming repetitive. This daily content update keeps players engaged and provides new strategic scenarios to master.

Game Mechanics

Wave-Based Survival

The core gameplay revolves around surviving increasingly difficult waves of enemies. Each wave brings more powerful and numerous foes, requiring you to continuously adapt your defensive strategy. The variety of enemy types, including different ogres and monsters, ensures that no single defensive strategy will work for all situations.

Resource Management

Gold management is crucial to success in Endless Siege. You earn gold by defeating enemies, which you can then spend on new towers, upgrades, or tower improvements. Balancing immediate defensive needs with long-term upgrade planning creates engaging strategic depth.

Operation Guide

Basic Controls

The game uses simple mouse controls that make it accessible to players of all skill levels:

  • Left Mouse Button : Select, place, and upgrade towers
  • Point and Click : Navigate menus and manage your defenses

Getting Started

  1. Initial Setup : Begin by placing turrets near the enemy entrance points
  2. Tower Placement : Use available spots strategically to create effective defensive lines
  3. Wave Management : Hit the 'next wave' button when you're ready to face the next challenge
  4. Continuous Improvement : Upgrade and level up your defenses between and during waves

Strategic Tips

  • Save gold in early rounds for major upgrades later
  • Diversify your tower types to handle different enemy weaknesses
  • Position towers to maximize their range and effectiveness
  • Monitor enemy paths and adjust your strategy accordingly

Why Play Endless Siege

Perfect for Strategy Game Fans

If you enjoy strategic thinking and tactical planning, Endless Siege provides the perfect blend of strategy and action. The game rewards careful planning while maintaining the excitement of real-time combat.

Accessible Yet Challenging

The game is easy to learn but difficult to master, making it perfect for both casual players and hardcore strategy enthusiasts. The gradual difficulty progression ensures players can develop their skills naturally.

Free Browser Gaming

Endless Siege is completely free to play and runs directly in your web browser without requiring downloads or installations. This makes it perfect for quick gaming sessions or extended strategic battles.

Cross-Platform Compatibility

The game works seamlessly on both desktop and mobile browsers, allowing you to defend your territory anywhere, anytime.

Frequently Asked Questions (FAQ)