Rainbow Blitz - Town Defense Game

Seele01-Flash
By
Rainbow Blitz is a delightful tower defense game where you protect a happy town from menacing bombs. With cute graphics, smiling trees, and simple mouse controls, it's perfect for players of all ages seeking fun and colorful gameplay.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Rainbow Blitz". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A vibrant, 2.5D "Toon-Shaded" world. Use `THREE.MeshToonMaterial` with a distinct black outline effect (inverted hull method or post-processing) to mimic the original Flash game's cartoon aesthetic. * **World Geometry**: Create a curved ground plane (a segment of a large cylinder or sphere) to replicate the "tiny planet" horizon seen in the screenshot. The grass should be a bright, saturated green (`#00FF00` range). * **Key Structures**: * **The Houses**: Three distinct low-poly pink houses placed in the center of the curve. They act as the player's "Health Bars." When a house is hit, scale it down along the Y-axis to simulate being "flattened." * **The Guardians**: Two stylized trees on the left and right flanks. Texture them with simple "smiling faces" (eyes and mouth) that look towards the center. * **Background**: A large, semi-transparent rainbow arc spanning the sky. A light blue skybox with fluffy white low-poly clouds. * **Projectiles & Enemies**: * **Player Weapon**: A colorful cannon barrel at the bottom center of the screen. * **Enemies**: Black spherical cartoon bombs with a sparking fuse effect (simple particle emitter) falling from the top of the screen. * **Effects**: When a bomb is destroyed, spawn a "confetti" particle explosion (multi-colored cubes) instead of realistic fire to match the "Cute/Funny" tag. ### 2. Audio Requirements * **BGM**: A fast-paced, whimsical "Carnival" or "Circus" style track (looping). High tempo, using organs or synth-brass. * **Sound Effects (Synthesized)**: * **Shoot**: A high-pitched "Pew!" or "Pop!" sound. * **Explosion**: A comedic "Boing" or a cartoony "Splat" sound. * **House Hit**: A discordant piano slam or a "crushing" noise. * **Game Over**: A "Sad Trombone" descending scale. ### 3. Gameplay Loop * **Core Mechanic**: A "Missile Command" style defense game. Bombs spawn at random X-coordinates at the top of the screen and fall slowly towards the three pink houses. * **Player Action**: The player fires projectiles to intercept bombs in mid-air. Projectiles must travel from the cannon to the target point (they are not instant hitscan). * **Scoring**: +100 points for every bomb destroyed in the air. Display floating text at the explosion site. * **Lose Condition**: If a bomb collides with a house, the house is flattened (destroyed). If all 3 houses are destroyed, the game ends. * **Difficulty Curve**: Increase the spawn rate and falling speed of bombs every 15 seconds. ### 4. Mobile Controls & Interaction * **Primary Input**: **Tap-to-Shoot**. * Use Raycasting on the `touchstart` event. * When the player taps anywhere in the sky, the cannon rotates to face that point, and a projectile is fired toward that 3D coordinate. * **Orientation**: Locked to **Landscape Mode** for a wider field of view, matching the original aspect ratio. * **UI Layout**: * **Score**: Large, bubbly font at the top center (ensure it avoids the notch area on modern phones). * **Restart Button**: A large (minimum 60x60px) button that appears only on the "Game Over" screen. * **Feedback**: * Trigger `window.navigator.vibrate(50)` on a successful hit (if supported). * Add a slight "screen shake" (camera jitter) when a house is destroyed. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Rainbow Blitz

Rainbow Blitz is a charming tower defense game that combines cute aesthetics with engaging strategic gameplay. Set in a vibrant, cartoon-style world filled with smiling trees and colorful rainbows, your mission is to defend a peaceful town from waves of falling bombs. This family-friendly game offers simple controls and delightful visuals that appeal to players of all ages.

With its whimsical art style and straightforward mechanics, Rainbow Blitz provides an accessible introduction to the tower defense genre while maintaining enough challenge to keep experienced players engaged.

Core Features

Adorable Visual Design

The game features a bright, colorful art style with friendly character designs including smiling trees, cheerful houses, and vibrant rainbow backgrounds. The cute aesthetic creates a welcoming atmosphere that contrasts playfully with the strategic defense gameplay.

Simple Yet Strategic Gameplay

While easy to learn, Rainbow Blitz requires tactical thinking as you position your defenses and time your shots to maximize effectiveness against incoming bomb waves. The game balances accessibility with engaging strategic depth.

Family-Friendly Content

Rated for all ages, this game provides clean, wholesome entertainment without violence or inappropriate content. It's perfect for family gaming sessions or introducing younger players to strategy games.

Instant Browser Play

No downloads required - jump straight into the action through your web browser. The game runs smoothly on both desktop and mobile devices, making it perfect for quick gaming sessions anywhere.

Gameplay Mechanics

In Rainbow Blitz, you must protect your town by shooting down bombs before they destroy the buildings and happy trees below. The game combines elements of tower defense and shooting games, requiring both accuracy and strategic planning.

Defense Strategy

Position yourself strategically to cover the maximum area and anticipate bomb drop patterns. As waves progress, you'll need to adapt your tactics to handle increasing numbers and speeds of incoming threats.

Scoring System

Earn points for each bomb successfully destroyed while losing points for any damage to your town. Maintain a high accuracy rate and protect as many structures as possible to achieve the best scores.

Operation Guide

Rainbow Blitz features intuitive mouse-based controls that anyone can master:

  • Mouse Movement : Aim your defensive weapon at incoming bombs
  • Left Mouse Button (LMB) : Fire projectiles to destroy bombs
  • Strategic Positioning : Move your cursor to optimal positions for maximum coverage

The responsive controls ensure precise aiming, allowing you to target bombs efficiently as they fall toward your town.

Why Play Rainbow Blitz

This game stands out in the tower defense genre through its unique combination of cute visuals and engaging gameplay. Unlike darker or more complex defense games, Rainbow Blitz offers a lighthearted experience that's both relaxing and challenging.

The game's all-ages rating makes it an excellent choice for family gaming, while its strategic elements provide enough depth for serious gamers. Whether you're looking for a quick stress-reliever or a colorful strategy challenge, Rainbow Blitz delivers an enjoyable experience that keeps you coming back for higher scores.

Perfect for players who enjoy games like Plants vs. Zombies or other casual tower defense titles, Rainbow Blitz offers that same addictive "just one more wave" gameplay in a uniquely charming package.

Frequently Asked Questions (FAQ)