Steampunk Tower Defense

Seele01-Flash
By
Steampunk Tower Defense is a unique free online tower defense game where you defend a single steampunk tower against enemies attacking from both sides. With multiple weapon upgrades and turret options, it offers strategic gameplay with a Victorian-era industrial twist.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Steampunk Tower Defense". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Side-View perspective. Use a **Steampunk aesthetic** characterized by brass, copper, dark wood, and gear motifs. The color palette should rely heavily on sepia, rusty orange, and metallic greys. * **The Tower (Hero Object):** Create a central vertical structure (cylinder or hexagonal prism) positioned at `x=0`. It must have distinct "floors" or "tiers." Each tier has two balcony slots (one facing left, one facing right) for placing turrets. * **Turrets (Low-Poly):** * *Machine Gun:* High fire rate, bronze barrel. * *Heavy Cannon:* Large bore, slow fire rate, creates explosion particles. * *Tesla Coil:* Emits blue `LineLoop` geometry (electricity) for visual effects. * **Enemies:** * *Ground Units:* Mechanical spiders or steam-powered tanks moving along the X-axis towards the tower from both `-x` and `+x` boundaries. * *Air Units:* Zeppelins floating at higher Y-axis values approaching the tower. * **Environment:** A static background plane with a "wasteland" or "industrial sky" gradient texture. Use Three.js fog (`scene.fog`) to blend the floor into the distance. * **Performance:** Use InstancedMesh for projectiles and enemy units to maintain 60FPS on mobile devices. ### 2. Audio Requirements * **BGM:** A looping track featuring rhythmic ticking clocks, steam hisses, and heavy cello/brass instruments (Industrial Victorian style). * **SFX:** * *Construction:* A metallic "clank-ratchet" sound when a turret is built. * *Shooting:* Distinct sounds for machine guns (rapid clicks) vs. cannons (heavy thuds). * *Impacts:* Metallic crunching noises when enemies take damage. * *UI:* Subtle gear-turning sounds when clicking menus. ### 3. Gameplay Loop * **Core Mechanic:** The player defends the central tower. Enemies spawn in waves from the left and right edges of the screen and move toward the center (`x=0`). * **Economy:** Player starts with limited "Scrap" currency. Killing enemies drops Scrap. * **Building:** Player taps an empty balcony slot on the tower to open a build menu. Spending Scrap places a turret. * **Upgrades:** Tapping an existing turret allows the player to upgrade its damage/range or sell it. * **Combat Logic:** Turrets automatically detect the nearest enemy within their radius (`distanceTo`). Turrets must rotate (`lookAt`) to face the target. * **Win/Loss:** * *Loss:* If enemies reach the tower (`abs(enemy.x) < towerRadius`), the tower takes damage. If Tower HP = 0, Game Over. * *Win:* Survive all defined waves. ### 4. Mobile Controls & Interaction * **Orientation:** **Landscape Mode** is mandatory to visualize incoming threats from both sides. * **Camera:** Orthographic Camera (`Three.OrthographicCamera`) to ensure a flat, readable tactical view suitable for mobile screens. * **Input (Raycasting):** * Implement a `Raycaster` bound to `touchstart` events. * Detect taps on "Balcony Slots" (to build) and "Enemies" (to view status). * **UI Layout:** * **Top Center:** Wave counter and Tower HP bar. * **Top Right:** Current "Scrap" resource count (Large, readable font). * **Context Menu:** When a slot is tapped, a radial menu or a floating HTML overlay should appear near the touch point with large buttons (min 44x44px) for selecting turret types. * **Feedback:** * Visual: Flash enemies white when hit. Display floating damage numbers. * Haptic: Trigger `navigator.vibrate(10)` when the tower takes damage or a large explosion occurs. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Steampunk Tower Defense is an innovative tower defense strategy game that puts a fresh spin on the classic genre. With a solid 3.7/5 rating from thousands of players, this game challenges you to defend a single, magnificent steampunk tower against waves of enemies approaching from both directions. Set in a Victorian-era industrial world filled with gears, steam, and mechanical marvels, the game combines strategic thinking with fast-paced action.

Unlike traditional tower defense games where you place multiple towers across a map, Steampunk Tower Defense focuses on upgrading and fortifying one central tower with various weapons and defensive systems.

Core Features

Unique Single Tower Defense Concept

The game's standout feature is its innovative approach to tower defense. Instead of building multiple towers, you focus entirely on one steampunk tower that serves as your fortress. This creates intense, concentrated battles where every upgrade and weapon placement matters.

Dual-Direction Combat System

Enemies attack from both the left and right sides of your tower, requiring strategic planning and quick decision-making. You must constantly monitor both flanks and adjust your defenses accordingly, making the gameplay more challenging and engaging than traditional single-direction tower defense games.

Extensive Upgrade System

Your steampunk tower offers multiple upgrade paths: - Weapon Systems : Install various turrets including cannons, machine guns, and special steampunk weaponry - Defensive Upgrades : Strengthen your tower's armor and structural integrity - Special Abilities : Unlock powerful steam-powered special attacks - Efficiency Improvements : Enhance reload speed, accuracy, and damage output

Steampunk Aesthetic

Immerse yourself in a beautifully crafted Victorian-era world featuring: - Intricate mechanical designs and steam-powered machinery - Rich bronze, copper, and brass color schemes - Detailed steampunk weapons and gadgets - Atmospheric industrial backgrounds

Game Gameplay

The core gameplay revolves around strategic resource management and real-time combat. As enemies approach from both sides, you must:

  1. Monitor Threats : Keep track of enemy waves approaching from left and right
  2. Manage Resources : Earn coins from defeated enemies to fund upgrades
  3. Strategic Placement : Choose which weapons to install on different levels of your tower
  4. Timing : Activate special abilities at crucial moments
  5. Adaptation : Adjust your strategy as enemy types and difficulty increase

Each wave brings different enemy types with varying strengths, speeds, and abilities. Some enemies may be heavily armored, requiring powerful cannons, while others are fast-moving and need rapid-fire weapons to stop them.

Operation Guide

Steampunk Tower Defense features intuitive mouse-based controls:

  • Left Click : Select weapons, activate abilities, and navigate menus
  • Mouse Movement : Aim weapons and browse upgrade options
  • Interface Navigation : Use the mouse to access different tower levels and weapon systems
  • Drag and Drop : Install new weapons and equipment on your tower

The game's user interface is designed to be accessible for both beginners and experienced strategy game players. All controls are clearly labeled, and the tutorial guides you through the basic mechanics.

Why Play This Game

Perfect for Strategy Lovers

If you enjoy strategic thinking and tactical planning, Steampunk Tower Defense offers deep gameplay that rewards careful planning and quick adaptation. The single-tower concept creates unique challenges not found in other tower defense games.

Completely Free Experience

Enjoy the full game experience without any cost. No hidden fees, no premium content locks – everything is available to play immediately in your browser.

Cross-Platform Compatibility

Play on any device with a modern web browser. Whether you're on a desktop computer, laptop, tablet, or smartphone, you can enjoy the same high-quality gaming experience.

Quick Sessions or Extended Play

The game accommodates both quick gaming sessions during breaks and longer strategic gaming sessions. Each wave takes just a few minutes, but the progression system keeps you engaged for hours.

Educational Value

Beyond entertainment, the game develops strategic thinking, resource management skills, and quick decision-making abilities. It's an excellent way to exercise your brain while having fun.

Frequently Asked Questions (FAQ)