Planet Clicker - Space Energy Production Game

Seele01-Flash
By
Planet Clicker is an addictive space-themed incremental game where you build an energy empire across the solar system. Click planets to generate energy, purchase upgrades, and colonize Earth, Mars, and Venus in this engaging idle experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Planet Clicker". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Retro-modern "Low-poly Pixel Art". Use `THREE.SphereGeometry` for the planets but apply a `THREE.Texture` with `magFilter = THREE.NearestFilter` to achieve a pixelated look. * **Earth**: Blue ocean base with blocky green continents. * **Mars**: Rust-red base with darker craters. * **Venus**: Yellowish-white atmosphere with swirling brown patterns. * **Background**: A deep black scene with a `THREE.Points` starfield. The stars should have a slow, subtle rotation to create a parallax 3D space effect. * **Juiciness (Visual Feedback)**: * When the planet is clicked, apply a "squash and stretch" elastic scaling animation (using Tween.js or simple math) to simulate a soft, tactile button press. * Generate floating text sprites ("+1", "+Energy") that spawn at the click point, float upwards, and fade out. * **Optimization**: Use `THREE.MeshLambertMaterial` or `MeshBasicMaterial` to conserve mobile battery. Limit sphere segments to 32x32. ### 2. Audio Requirements * **BGM**: A relaxing, low-fidelity "Space Synthwave" or "Lo-Fi Hip Hop" loop. It should be quiet and ambient. * **Sound Effects (SFX)**: * **Tap**: A short, crisp 8-bit "blip" or "pop" sound. Pitch-shift the sound slightly random (±0.1) on each click to prevent listener fatigue. * **Upgrade**: A retro "cash register" or "power-up" rising tone. * **Planet Unlock**: A majestic synthesized "fanfare" or heavy "whoosh" sound. ### 3. Gameplay Loop * **Core Logic**: * Player clicks the planet -> Earn `Energy`. * `Energy` is the universal currency. * **Idle Income**: Implement a `setInterval` or `requestAnimationFrame` delta loop to generate energy automatically based on owned structures (Farms, Power Plants, etc.). * **Progression System**: * Start with **Earth**. * **Mars Unlock**: Requires specific energy threshold (e.g., 10,000). * **Venus Unlock**: Requires massive energy threshold (e.g., 1 Trillion). * **Upgrades**: Create a data structure for upgrades (e.g., "Click Power", "Solar Farm", "Alien Tech"). Each purchase increases cost exponentially and boosts either `clickStrength` or `autoEnergyPerSec`. ### 4. Mobile Controls & Interaction * **Orientation**: **Portrait Mode** only. This allows for one-handed play. * **Controls**: * **Main Interaction Area**: The top 50% of the screen is the 3D canvas containing the planet. It must support multi-touch (tapping with multiple fingers registers multiple clicks). * **Raycaster**: Implement `THREE.Raycaster` for accurate touch detection on the sphere mesh. * **UI Layout**: * Use an HTML/CSS overlay for the UI. * **Top Bar**: Total Energy display (large, readable font like 'Courier New' or a Pixel font). * **Bottom Panel**: A scrollable list for Upgrades and Planet Switching. Buttons must be at least **44x44px** for touch accessibility. * **Haptic Feedback**: Trigger `window.navigator.vibrate(5)` (short vibration) on every successful tap to provide tactile confirmation. * **Meta Viewport**: Ensure `<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">` is included to prevent double-tap zooming. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Planet Clicker

Planet Clicker is a captivating space-themed incremental clicker game that challenges you to build the ultimate energy production empire across the solar system. This free browser-based game combines the addictive mechanics of clicking games with strategic resource management and planetary colonization.

In Planet Clicker, your mission is simple yet engaging: generate energy by clicking on planets and use that energy to purchase powerful upgrades and expand your cosmic empire. What starts as humble energy production on Earth evolves into a multi-planetary operation spanning Mars and Venus.

Core Features

Multi-Planetary Expansion System

The game features three unique planets to colonize, each with distinct characteristics:

  • Earth : Your starting planet with basic energy production facilities including farms, power plants, and clicking power enhancements
  • Mars : The red planet unlocks advanced technologies like solar oil, coal power, nuclear energy, and mysterious alien technology
  • Venus : The ultimate challenge requiring 1 trillion energy units, featuring cutting-edge technologies including iron processing, lava energy, and the coveted "Future Technology" upgrade

Progressive Upgrade System

Each planet offers a comprehensive upgrade tree designed to maximize your energy output. From simple clicking power boosts to advanced alien technologies, every upgrade contributes to your growing energy empire.

Idle Gameplay Mechanics

Planet Clicker incorporates idle game elements, allowing your energy production to continue even when you're not actively clicking. This makes it perfect for both active play sessions and passive progression.

Cross-Platform Compatibility

Enjoy seamless gameplay across all devices. Planet Clicker is optimized for both desktop browsers and mobile devices, ensuring you can manage your space empire anywhere.

Gameplay Mechanics

Energy Generation

The core gameplay revolves around energy production . Click on planets to generate energy units, which serve as your primary currency for purchasing upgrades and unlocking new planets.

Strategic Upgrade Purchasing

Decide how to allocate your energy resources among various upgrade categories: - Clicking Power : Increase energy gained per click - Automated Production : Build facilities that generate energy passively - Efficiency Boosters : Multiply your overall energy output - Planetary Unlocks : Save energy to purchase access to new worlds

Interplanetary Progression

The game follows a natural progression system where success on one planet enables expansion to the next. Master Earth's energy systems before attempting the Mars colonization, and dominate Mars before tackling Venus's trillion-energy price tag.

Operation Guide

Basic Controls

  • Left-click : Click on any visible planet to generate energy
  • Upgrade Menu : Navigate through available upgrades using the interface
  • Planet Selection : Switch between unlocked planets to manage different energy systems

Optimal Strategy Tips

  • Start by focusing on clicking power upgrades to maximize manual energy generation
  • Invest in automated production early to enable idle progression
  • Balance between immediate upgrades and saving for planetary expansion
  • Prioritize the most cost-effective upgrades first (highest energy gain per cost ratio)

Advanced Techniques

  • Planet Rotation : Regularly switch between planets to optimize upgrade purchases
  • Milestone Planning : Set energy goals for major purchases like new planets
  • Upgrade Timing : Plan expensive upgrades during active play sessions for maximum impact

Why Play Planet Clicker

Perfect for Casual Gaming : Planet Clicker offers the ideal balance of engagement and relaxation. The simple clicking mechanics make it accessible to all players, while the deep upgrade systems provide long-term goals and progression satisfaction.

Scientifically Themed Fun : Unlike generic clicker games, Planet Clicker's space theme adds educational value and visual appeal. Learn about different planets while building your energy empire.

No Download Required : Jump into the action immediately through your web browser. No installations, no waiting, just instant space colonization fun.

Mobile-Friendly Design : Whether you're on your computer at home or using your smartphone during a commute, Planet Clicker adapts perfectly to your device.

Completely Free : Enjoy the full Planet Clicker experience without any cost. No hidden fees, no premium content locks, just pure incremental gaming enjoyment.

Ideal for Multitasking : The idle mechanics mean you can progress while focusing on other tasks, making it perfect for background gaming during work or study breaks.

Frequently Asked Questions (FAQ)