Bubble Tanks Tower Defense

Seele01-Flash
By
Bubble Tanks Tower Defense is a strategic tower defense game where you build custom mazes using powerful tank towers. Create winding paths to slow down enemies while upgrading your defenses to stop all invaders before they reach the end.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Bubble Tanks Tower Defense". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Bioluminescent Micro-Organism" aesthetic. Use a top-down **Orthographic Camera** view to emulate the classic 2D feel but with 3D depth. * **Color Palette**: Deep oceanic/space gradients for the background (Dark Purple `#2c0a54` to Teal `#008080`). Entities should use bright, neon colors (Cyan, Lime Green, Hot Pink) with high emissive intensity to simulate a "glow". * **Models**: * **Towers**: Composed of multiple `THREE.SphereGeometry` meshes merged together. They should pulse gently (scale sine wave) to look alive. * **Enemies**: Simple floating spheres or clusters resembling bubbles/viruses. * **Projectiles**: Small, fast-moving glowing spheres. * **The Grid**: A visible grid on the floor plane (using `THREE.GridHelper` or a custom shader) where lines are faint and glowing. * **Effects**: * **Fresnel Shader**: Use custom shaders or `MeshPhysicalMaterial` with transmission to make bubbles look semi-transparent and glass-like. * **Particles**: When enemies die, they should burst into smaller bubble particles that float away and fade out. * **Optimization**: Use **InstancedMesh** for projectiles and particles to handle high counts on mobile GPUs. Limit sphere segments to 16-32. ### 2. Audio Requirements * **BGM**: A chill, ambient electronic track. Think "underwater echo" or "space ambient" with a slow tempo (80-90 BPM). * **Sound Effects (SFX)**: * **UI Click**: Soft, watery "bloop" sounds. * **Tower Placement**: A solid, resonant "thud" with a watery decay. * **Shoot**: Muted laser sounds or "pew" sounds with a low-pass filter. * **Enemy Death**: A distinct "Pop" sound (bubble bursting). * **Error**: A low-pitch buzz if the player tries to block the path completely. ### 3. Gameplay Loop * **Maze Building Core**: The map is an open grid. The player can place towers anywhere *except* the spawn point and the exit. * **Dynamic Pathfinding**: * Implement a Grid Graph logic. * Enemies must spawn at Point A and travel to Point B. * **Crucial Logic**: Before placing a tower, the code must run a pathfinding check (e.g., BFS or A*). If placing the tower results in *no valid path* to the exit, the placement is blocked (turn the preview red). * **Economy**: * Enemies drop "Bubble" currency upon death. * Towers cost Bubbles to build and upgrade. * **Tower Types**: * *Basic*: balanced range/speed. * *Sniper*: Slow fire, long range, high damage. * *Rapid*: Fast fire, low damage, short range. * **Win/Loss**: The player has 20 "Lives". An enemy reaching the exit deducts 1 life. Reaching 0 lives ends the game. Survive all waves to win. ### 4. Mobile Controls & Interaction * **Orientation**: Landscape Mode. * **Interaction**: * **Tap to Select**: A persistent bottom HUD bar displays tower types. Tapping one highlights it. * **Tap to Place**: Tapping a grid cell places the selected tower. * **Drag to Pan**: One-finger drag moves the camera view. * **Pinch to Zoom**: Two-finger pinch adjusts zoom level. * **UI Layout**: * **Bottom Bar**: Large icons (min 64x64px) for tower selection, easily accessible by thumbs. * **Top Bar**: Displays Lives, Wave Count, and Current Currency (Bubbles). * **Feedback**: * **Haptic**: Trigger a short vibration (using `navigator.vibrate`) when a tower is successfully placed or an enemy leaks. * **Visual**: When selecting a placement spot, show a "Ghost Tower". If the spot is invalid (blocks path), the Ghost Tower turns Red; otherwise, it is Green. Display the enemy's projected path as a line on the floor. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Bubble Tanks Tower Defense is an innovative strategy game that puts maze creation at the heart of tower defense gameplay. Unlike many modern tower defense games that limit player freedom, this game encourages you to build elaborate, custom mazes using tank towers. With a charming bubble-themed aesthetic and strategic depth, it offers endless possibilities for creative defense strategies.

The game challenges you to think like an architect and strategist simultaneously. You'll need to construct the most effective maze possible while managing resources and upgrading your tank towers to handle increasingly difficult waves of enemies.

Core Features

Complete Maze Freedom

Unlike restrictive tower defense games, Bubble Tanks gives you total control over maze design. Create swirling spirals, zigzag patterns, or invent completely unique solutions. The only limit is your imagination and strategic thinking.

Strategic Tower Upgrades

Each tank tower can be upgraded to increase damage, range, and special abilities. Smart upgrade placement around choke points and curves maximizes your defensive potential and ensures no enemy escapes.

Bubble Tank Arsenal

Command an army of adorable yet deadly bubble tanks, each with unique characteristics and upgrade paths. From rapid-fire units to heavy artillery, choose the right combination for your defensive strategy.

Progressive Difficulty

Face increasingly challenging enemy waves that test your maze design and tactical skills. Each level requires you to adapt your strategy and improve your defensive layout.

Gameplay Strategy

Maze Construction Tips

The key to success lies in creating the longest possible path for enemies to travel. Force invaders to navigate through multiple turns and choke points, giving your towers maximum time to eliminate threats. Consider creating spiraling mazes that loop back on themselves for ultimate efficiency.

Upgrade Positioning

Focus your tower upgrades strategically around curves and narrow passages where enemies bunch together. These choke points allow upgraded towers to deal maximum damage to multiple targets simultaneously.

Resource Management

Balance between expanding your maze and upgrading existing towers. Sometimes extending the path is more valuable than upgrading, while other situations require powerful towers to handle tough enemies.

Operation Guide

Basic Controls

  • Mouse : Click and drag to place and position tank towers
  • Left Click : Select towers for upgrades or repositioning
  • Right Click : Cancel current action or deselect towers
  • Spacebar : Pause/unpause the game to plan strategy
  • ESC : Open game menu and options

Tower Placement

Click on empty spaces to place new tank towers. Towers automatically create walls, so position them strategically to force enemies along your desired path. Remember that enemies always seek the shortest route to the exit.

Upgrading Systems

Select any placed tower to access upgrade options. Invest in damage upgrades for high-traffic areas, range upgrades for corner towers, and special abilities for strategic advantages.

Why Play This Game

Perfect for Strategy Lovers : If you enjoy games that reward creative thinking and strategic planning, Bubble Tanks Tower Defense offers incredible depth. The maze-building mechanic adds a unique twist that sets it apart from standard tower defense games.

Accessible Yet Challenging : The cute bubble theme makes the game approachable for all ages, while the strategic complexity provides lasting challenge for experienced players. It's easy to learn but difficult to master.

Endless Replayability : With complete freedom in maze design, every playthrough can be different. Experiment with new layouts, try different tower combinations, and discover optimal strategies through multiple attempts.

Free Browser Gaming : Enjoy this complete gaming experience directly in your browser without downloads, installations, or payments. Perfect for quick gaming sessions or extended strategic planning.

Brain Training : The game exercises spatial reasoning, resource management, and strategic thinking skills while providing entertaining gameplay. It's both fun and mentally stimulating.

Frequently Asked Questions (FAQ)