Planetary Assault

Seele01-Flash
By
Planetary Assault is an addictive space-themed idle clicker game where you command an arsenal of rockets to bombard planets. Upgrade your weapons, unlock satellite turrets, and master cosmic destruction to dominate the leaderboards.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Planetary Assault". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Cartoon/Casual aesthetic using `MeshToonMaterial` or cel-shading shaders to mimic the vibrant, flat 2D look of the screenshot within a 3D space. * **The Planet (Centerpiece)**: A large, rotating sphere in the center of the screen. It represents the "Enemy". As HP decreases, visual feedback is required (e.g., the mesh shakes, turns redder, or decal sprites appearing to represent craters). * **Background**: A vertical CSS linear gradient or Three.js ShaderMaterial transitioning from vibrant purple (top) to deep blue (bottom), populated with small, twinkling stars (points material) to create depth without high polygon cost. * **Rockets & Satellites**: Low-poly rocket models. They should spawn from off-screen or from orbiting satellites and travel towards the planet center. Use `TrailRenderer` or simple particle trails (yellow/orange) for propulsion effects. * **Performance**: Implement **Object Pooling** for rockets, particles, and floating text to ensure 60FPS on mobile browsers. Avoid creating/destroying objects every frame. ### 2. Audio Requirements * **BGM**: A loopable, upbeat "Synth-pop" or "Casual Space" track. It should be energetic but not distracting (low-frequency dominance). * **Sound Effects (SFX)**: * **Impact**: A satisfying "thud" or "crunch" sound when a rocket hits the planet (vary pitch slightly to avoid repetition). * **Gold**: A high-pitched "ding" or "coin" sound when resources are gained. * **Upgrade**: A mechanical "wrench" or "power-up" sound when a button is pressed. * **Explosion**: A large, bass-heavy boom when the planet is finally destroyed. ### 3. Gameplay Loop * **Core Mechanic (Idle/Auto)**: Rockets spawn automatically based on the player's "Fire Rate" stat. They travel to the planet, collide, deal damage, and generate "Gold". * **Manual Interaction**: Tapping the planet directly deals instant "Click Damage" (active play). * **Progression**: * **Planet HP**: When Planet HP reaches 0, it explodes (particle effect), and a new, distinctively colored planet appears with higher HP. * **Economy**: Gold is accumulated to purchase upgrades. * **Upgrade System**: * **Rocket Power**: Increases damage per hit. * **Fire Rate**: Increases the frequency of automatic rocket spawns. * **Satellites**: Unlocks orbiting turrets that fire additional lasers/projectiles. * **Win/Loss**: There is no "Game Over". It is an infinite incremental loop. The goal is to reach the highest level (Planet Count). ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Portrait Mode** optimized. The top 50% of the screen is the 3D view (Planet/Space), and the bottom 50% is a scrollable UI panel for upgrades. * **Touch Controls**: * **Tap Planet**: Raycasting to detect touches on the sphere mesh to deal damage. Add a "squash and stretch" animation on tap for juice. * **Upgrade Buttons**: Large, thumb-friendly buttons (min-height 50px). * **Buy Max Mechanic**: Replace the desktop "Right Click" mechanic with a **UI Toggle Switch** labeled "x1 / xMAX". When toggled to xMAX, buttons calculate the max affordable upgrades. * **Feedback**: * **Haptic Feedback**: Trigger `navigator.vibrate(50)` on planet explosion and light vibration `navigator.vibrate(10)` on upgrades. * **Floating Text**: When the planet is hit, spawn HTML-based or Canvas-texture-based floating numbers showing damage amount, drifting upward and fading out. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Planetary Assault is an engaging space idle clicker game that puts you in command of a devastating cosmic fleet. Your mission is simple yet satisfying: bombard planets with an ever-growing arsenal of rockets and satellite weapons. This free-to-play browser game combines the addictive mechanics of incremental games with spectacular space warfare visuals.

Set against a vibrant purple cosmic backdrop, you'll watch as your rockets automatically rain down destruction upon colorful planets. The game features smooth animations, satisfying upgrade mechanics, and endless progression that keeps you coming back for more cosmic carnage.

Core Features

Automated Rocket Bombardment

Your rockets work around the clock, continuously attacking planetary targets even when you're away from the game. This idle mechanic ensures steady progress and resource accumulation, making it perfect for casual gaming sessions.

Comprehensive Upgrade System

Enhance your destructive capabilities through multiple upgrade paths: - Rocket Power : Increase base damage output for devastating attacks - Fire Rate : Launch more rockets per second for sustained bombardment - Gold Multipliers : Boost resource generation for faster progression - Satellite Turrets : Deploy advanced orbital weapons for additional firepower

Strategic Skill Deployment

Unlock and deploy various tactical skills to amplify your assault effectiveness. These temporary boosts can dramatically increase your damage output during crucial moments, helping you overcome tougher planetary defenses.

Competitive Leaderboards

Compete against players worldwide to achieve the highest destruction scores. Climb the rankings by optimizing your upgrade strategy and maximizing your planetary assault efficiency.

Gameplay Mechanics

The core gameplay loop revolves around resource management and strategic upgrades. Your rockets generate gold with each successful hit, which you can reinvest into more powerful weapons and enhanced capabilities. As you progress, you'll encounter increasingly resilient planets that require upgraded firepower to defeat.

The incremental nature means every upgrade makes a noticeable difference in your destructive output. Watch your damage numbers grow exponentially as you unlock new tiers of weaponry and satellite support systems.

Operation Guide

Planetary Assault features intuitive mouse-based controls designed for effortless gameplay:

  • Left Mouse Click : Purchase individual upgrades and enhancements
  • Right Mouse Click : Buy maximum affordable upgrades instantly
  • Menu Navigation : Use mouse to access different upgrade categories and game options

The streamlined interface allows you to focus on strategic decision-making rather than complex controls. Simply click to invest your accumulated gold in the upgrades that best suit your destruction strategy.

Why Play Planetary Assault

Perfect for Casual Gaming : The idle mechanics make it ideal for players who want progression without constant attention. Set up your rocket bombardment and check back periodically to spend your accumulated resources.

Satisfying Progression : Watch your humble rocket fleet evolve into a devastating armada capable of obliterating the toughest planetary defenses. The exponential growth creates genuinely rewarding advancement.

Free Browser Access : No downloads, installations, or payments required. Jump straight into cosmic destruction through any modern web browser on desktop or mobile devices.

Strategic Depth : While easy to learn, the game offers meaningful choices in upgrade paths and resource allocation. Optimize your build to climb the competitive leaderboards.

Visual Spectacle : Enjoy colorful space visuals and smooth animations that make planetary destruction surprisingly beautiful and mesmerizing to watch.

Frequently Asked Questions (FAQ)