Endless Siege - Tower Defense Game

Seele01-Flash
By
Endless Siege is an addictive tower defense game where you strategically deploy defensive towers to survive endless waves of attacking orcs and monsters. Test your tactical skills in this free online game.

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**: Adhere to a **vibrant, stylized Low-Poly aesthetic** similar to "Clash of Clans" or "Kingdom Rush". Use bright, saturated colors (lush green grass `#4caf50`, bright blue sky `#2196f3`, stone grey paths). * **Camera & Perspective**: Use an **Orthographic Camera** set to an isometric angle (approx 45 degrees). This is crucial for precise touch input on mobile screens. Implement a pinch-to-zoom and limited clamp-pan functionality. * **Map Generation**: Create a grid-based tile system (10x10 or 15x15). * **Path Tiles**: Dirt texture, distinct from grass. Enemies follow this strictly. * **Buildable Tiles**: Grass texture. Valid placement spots for towers. * **Obstacles**: Rocks or trees (non-buildable) to create strategic bottlenecks. * **Characters (Enemies)**: * **Orcs**: Green cubes/capsules with simple accessories (horns, shields) to distinguish types. * **Types**: *Grunt* (Basic), *Tank* (Slow, High HP, larger scale), *Runner* (Fast, Low HP, reddish tint). * **Animation**: Simple vertex shader wobble or tween-based bouncing for movement (performant on mobile). * **Towers**: * **Ballista**: Wooden structure, shoots single projectiles. * **Torch**: Stone pillar with fire particles, deals AOE burn damage. * **Cannon**: Black metal cylinder, slow fire rate, splash damage. * **Timewarp**: Blue crystal structure, slows enemies in range (no damage). * **Performance**: Use **THREE.InstancedMesh** for all towers, floor tiles, and enemies. This is a mandatory requirement to handle "Endless" waves on mobile GPUs. ### 2. Audio Requirements * **Background Music (BGM)**: An adventurous, orchestral fantasy loop. It should be marching-style but lighthearted, not dark. * **Sound Effects (SFX)**: * **Towers**: *Whoosh* (Arrow), *Boom* (Cannon), *Crackle* (Fire), *Hum* (Time warp). * **UI**: *Pop* sound when placing a tower, *Ching* coin sound when killing an enemy. * **Feedback**: A generic *Grunt* or *Splat* sound when enemies die. ### 3. Gameplay Loop * **Phase 1: Preparation**: * Player starts with fixed gold (e.g., 500). * Player taps a "Grass Tile" to open a radial menu or bottom sheet to select a tower. * Towers consume gold. * **Phase 2: The Wave**: * Player presses "Next Wave". * Enemies spawn at the *Start Point* and travel along the path to the *Base*. * Towers auto-target the nearest enemy in range. * **Phase 3: Economy & Progression**: * Enemies drop gold upon death. * Player can tap existing towers to **Upgrade** (increase range/damage) or **Sell** (refund 50% gold). * **Win/Loss Condition**: * **Loss**: If 10 enemies reach the Base, Game Over. * **Win**: Technically endless, but display "Wave X Cleared" after each batch. High score is the goal. ### 4. Mobile Controls & Interaction * **Input System**: Use `THREE.Raycaster` mapped to touch events. * **Tap**: Select grid cell / Select Tower. * **Tap Outside**: Deselect. * **UI Layout (Mobile Landscape)**: * **Top Left**: Wave Counter / Lives (Heart Icon). * **Top Right**: Gold Counter. * **Bottom Right**: Large, thumb-friendly "Start Wave" button (green). * **Bottom Center**: Dynamic Context Menu. When a tile is selected, show 4 build buttons here (minimum touch target 48x48px). * **Visual Feedback**: * **Placement**: When a tower is built, use a "bouncing" scale tween (0 -> 1.2 -> 1.0) to give it weight. * **Range Indicators**: When selecting a tower, draw a transparent circle on the ground showing its attack radius. * **Damage Numbers**: Floating text particles rising from enemies when hit. 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 captivating tower defense game that combines strategic planning with intense action. Face off against endless waves of fierce orcs, goblins, and monsters as you build and upgrade your defensive fortress. With its vibrant cartoon graphics and progressively challenging gameplay, this free online game offers hours of strategic entertainment.

The game features a colorful fantasy world where massive orc armies march toward your territory. Your mission is simple yet challenging: deploy the right combination of defensive towers to stop the invasion before your defenses are overwhelmed.

Core Features

Strategic Tower Placement

Choose from four distinct tower types, each with unique abilities: - Ballista : Long-range precision attacks perfect for single targets - Torch : Area damage towers ideal for crowd control - Cannon : Heavy artillery with explosive area damage - Timewarp : Slowing towers that reduce enemy movement speed

Progressive Upgrade System

Start with basic defensive weapons and gradually unlock powerful advanced towers. Each tower can be leveled up multiple times, significantly increasing damage and effectiveness. Plan your gold spending wisely to maximize defensive potential.

Endless Wave Survival

Face increasingly difficult enemy waves with varying monster types. Each wave brings stronger, faster, and more numerous enemies. The challenge escalates from manageable skirmishes to chaotic battles requiring perfect tower coordination.

Daily New Content

Experience fresh gameplay with new maps added daily, ensuring endless replayability and new strategic challenges.

Gameplay Mechanics

Tower Deployment Strategy

Place your initial towers near enemy spawn points for maximum efficiency. Strategic positioning is crucial - consider enemy paths, tower ranges, and upgrade potential when choosing locations.

Resource Management

Earn gold by defeating enemies and use it wisely for tower upgrades. Balance immediate defensive needs with long-term upgrade goals. Save resources for powerful late-game tower transformations.

Enemy Wave Progression

Enemies become progressively stronger and more numerous. Early waves feature basic orcs, while later stages introduce heavily armored units, fast-moving scouts, and massive boss creatures.

Operation Guide

Mouse Controls : Use left mouse button for all interactions - Click empty spots to place towers - Click existing towers to upgrade or sell them - Click "Next Wave" button to start each enemy wave - Drag to pan the camera view

Tower Management : 1. Select tower type from the menu 2. Click on available placement spots 3. Monitor enemy paths and adjust strategy 4. Upgrade towers during wave breaks 5. Sell underperforming towers to reinvest resources

Why Play Endless Siege

Perfect for Strategy Enthusiasts : Combines tactical planning with real-time action, offering deep strategic gameplay that rewards careful planning and quick thinking.

Completely Free : Enjoy full game features without any cost. No hidden fees, premium content, or pay-to-win mechanics.

Browser-Based Convenience : Play instantly on any device with a web browser. No downloads, installations, or account registration required.

Addictive Progression : Experience satisfying tower upgrades and witness your defensive strategies evolve from simple fortifications to advanced technological marvels.

Endless Replayability : With daily new maps and endless wave mechanics, each playthrough offers unique challenges and opportunities to improve your tactical skills.

Frequently Asked Questions (FAQ)