Bloom Defender - Tree Tower Defense Game

Seele01-Flash
By
Bloom Defender is a charming tree-themed tower defense game where you protect a mighty oak from corrupted forest spirits. Deploy powerful tree towers, cast magical spells, and upgrade your defenses in this easy-to-learn strategy experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Bloom Defender". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: **Low-Poly Cartoon / Cel-Shaded**. The aesthetic should be "Cute" and vibrant, imitating the original 2D vector art but in 3D. Use bright, high-saturation colors: Emerald Greens for grass, Burnt Orange/Yellow for autumn trees, and Dark Grey/Red for corrupted spirits. * **Camera View**: Fixed **Orthographic Camera** (Isometric angle) to ensure the grid layout is perfectly clear on small mobile screens. * **Map Structure**: A tile-based grid (e.g., 10x10 or 12x8). * **Tiles**: Green flat tiles for buildable areas, brown dirt tiles for the enemy path, and grey rock/lava tiles as non-buildable obstacles. * **Base**: A large, animated "Mighty Oak" tree at the end of the path (the objective to protect). * **Characters (Low Poly Primitives)**: * **Towers**: "Sapling Shooter" (Green cylinder + sphere foliage), "Autumn Bomber" (Orange foliage), "Ice Willow" (Blue/White, slows enemies). * **Enemies**: "Corrupted Spirits" represented as blobs or capsules with simple "Skull mask" textures or red glowing eyes. * **Performance**: Use `InstancedMesh` for the floor grid and common environment props (grass tufts) to minimize draw calls on mobile devices. ### 2. Audio Requirements * **BGM**: A whimsical, upbeat orchestral track featuring marimbas, flutes, and light percussion to fit the "Forest/Nature" theme. It should loop seamlessly. * **Sound Effects (SFX)**: * **Building**: A satisfying "Pop" or "Rustle" sound when placing a tree. * **Shooting**: "Pew" sounds but organic (like spitting seeds or nuts). * **Impact**: Soft wooden thuds or squishing sounds when enemies take damage. * **Spell**: A magical chime when the "Slow" spell is cast. * **Game Over**: A sad trombone or wilting sound effect. ### 3. Gameplay Loop * **Core Mechanic**: Tower Defense. Enemies spawn from a "Corrupted Portal" and follow a pre-defined path toward the "Mighty Oak". * **Build & Upgrade**: The player spends "Sunlight" (currency) to plant Tree Towers on green grass tiles. * *Tower Types*: Single Target (High Dmg), Splash (Low Dmg, Area of Effect), Slow (Utility). * **Spells**: Include a "Global Spell" button (e.g., "Roots Entangle") that temporarily stops all enemies for 3 seconds. This has a cooldown. * **Win/Loss**: * **Loss**: If 5 enemies reach the Mighty Oak, the tree dies. * **Win**: Survive all waves (e.g., 3 waves of increasing difficulty). * **Economy**: Enemies drop Sunlight when destroyed. ### 4. Mobile Controls & Interaction * **Orientation**: **Landscape Mode** (Force landscape for wider field of view). * **Touch Controls**: * **Raycasting**: Implement precise raycasting for tap detection on grid tiles. * **Placement Flow**: 1. Tap a UI icon (Tower Type). 2. Tap a valid grid tile to place. 3. (Optional) Tap an existing tower to see range or upgrade. * **UI Layout**: * **Top Bar**: Current Wave, Sunlight Counter, Oak Health (Hearts). * **Bottom Bar**: Large, thumb-friendly buttons (minimum 60x60px) for Tower selection. * **Spell Button**: Floating action button near the bottom right. * **Feedback**: * **Visual**: When a tower is placed, spawn particle leaves. When an enemy is hit, flash them white. * **Haptic**: Trigger a short vibration (`navigator.vibrate(50)`) when placing a tower or when the base takes damage. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Bloom Defender is a delightful tower defense strategy game that puts you in command of nature's own army. With a perfect 3.2/5 rating from dedicated players, this game offers a unique twist on the classic tower defense formula by featuring trees as your primary defensive units. Instead of traditional military towers, you'll deploy various types of tree defenders to protect your sacred oak from waves of corrupted forest spirits.

The game combines strategic depth with charming visuals, making it accessible to newcomers while still offering engaging gameplay for tower defense veterans. Set in a mystical forest environment, you'll witness the eternal struggle between nature's guardians and the dark forces threatening the woodland realm.

Core Features

Nature-Powered Tower Defense

Experience tower defense like never before with tree-based defensive units. Each tree type offers unique abilities and upgrade paths, from basic saplings to mighty ancient oaks with devastating power.

Magical Spell System

Enhance your defensive strategy with powerful spells that can slow down enemies, boost your trees' effectiveness, or deal direct damage to approaching threats. Master the timing and combination of spells to maximize your defensive potential.

Progressive Upgrade System

Upgrade your tree towers throughout each level to increase their damage, range, and special abilities. Transform simple seedlings into formidable forest guardians capable of unleashing "maximum leafy destruction" on your enemies.

Cute and Accessible Design

The game features charming graphics and an intuitive interface that makes it perfect for players of all ages. Despite its cute appearance, the game offers substantial strategic depth and challenging gameplay.

Easy-to-Learn Mechanics

Designed with simplicity in mind, Bloom Defender allows new players to jump right into the action while providing enough complexity to keep experienced strategists engaged.

Game Mechanics

The core gameplay revolves around strategic tower placement and resource management. You'll need to carefully position your tree defenders along the path that corrupted spirits will follow, taking advantage of terrain features and creating defensive chokepoints.

Each wave of enemies presents new challenges, requiring you to adapt your strategy and upgrade your defenses accordingly. The spell system adds an active element to the traditionally passive tower defense genre, allowing you to intervene directly when your defenses need support.

Operation Guide

Mouse Controls : The entire game is controlled using simple mouse interactions, making it incredibly accessible across all platforms.

  • Left Click : Select and place tree towers, cast spells, and navigate menus
  • Hover : Preview tower ranges and upgrade options
  • Drag : Some advanced spells may require mouse gestures

The intuitive control scheme ensures that players can focus on strategy rather than complex input combinations. Everything you need is accessible through simple point-and-click interactions.

Platform Compatibility

Bloom Defender runs seamlessly in web browsers without requiring any downloads or installations. The game is fully compatible with:

  • Desktop Computers : Windows, Mac, and Linux systems with modern web browsers
  • Tablets and Mobile Devices : iOS and Android devices with browser support
  • Chromebooks : Perfect for school and casual gaming environments

Why Play Bloom Defender

This game stands out in the crowded tower defense genre by offering a fresh, nature-themed approach that's both visually appealing and strategically engaging. The combination of cute graphics and solid gameplay mechanics makes it perfect for:

  • Casual Gamers : Easy to learn but hard to master gameplay
  • Strategy Enthusiasts : Deep tactical elements and upgrade systems
  • Family Gaming : All-ages content that's safe and entertaining
  • Quick Gaming Sessions : Perfect for short breaks or extended play sessions

The free-to-play browser format means you can start defending the forest immediately, without any barriers to entry. Whether you're looking to kill a few minutes or dive into a longer gaming session, Bloom Defender provides the flexibility to play on your terms.

Frequently Asked Questions (FAQ)