Coin Clicker

Seele01-Flash
By
Coin Clicker is an addictive idle clicker game where you collect coins by clicking and purchase upgrades to maximize your earning potential. Simple to play, impossible to put down!

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Coin Clicker". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a vibrant, "Glossy Toon" aesthetic similar to the provided title card. The color palette should focus on saturated oranges, golds, and warm yellows with cool cyan rim lighting or shadows for contrast. * **Central Asset:** The main focus is a large, rotating **3D Gold Coin** in the center of the screen. Use a `CylinderGeometry` with a custom texture (dollar sign or star) or a high-quality Matcap material to simulate a shiny, metallic gold surface without expensive real-time lighting. * **Background:** Use a dynamic radial gradient shader (Orange to dark Red) that pulses slightly to keep the scene alive. Add a subtle rotating "sunburst" or "rays" effect behind the coin. * **Particles:** Implement a particle system using `InstancedMesh` for performance. When the coin is clicked, small coin particles or gold sparks should explode outward. * **Floating Text:** Implement a system to render floating numbers ("+1", "+100") that spawn at the click position, float up, and fade out. Use HTML/CSS overlays or 2D Canvas texture sprites for crisp text on mobile screens. ### 2. Audio Requirements * **BGM:** A casual, upbeat, and looping "elevator-style" track with a rhythmic bassline to encourage tapping tempo. * **Sound Effects (SFX):** * **Click:** A satisfying, high-pitched metallic "clink" or "ding" (vary the pitch slightly per click to prevent audio fatigue). * **Upgrade Buy:** A "Cash Register" or "Cha-ching" sound. * **Level Up:** A short triumphant fanfare. * **UI Click:** A soft "pop" sound for menu navigation. ### 3. Gameplay Loop * **Core Mechanic:** The player taps the central 3D coin to earn "Coins". * **Upgrade System:** * **Click Power:** Increases the amount of coins earned per tap. Cost increases exponentially. * **Auto-Clicker (Idle):** Automatically generates coins every second without tapping. Cost increases exponentially. * **Progression:** As the player reaches total coin milestones (Leveling Up), the central coin should visually change (e.g., spin faster, emit a glow, or change texture from Gold to Platinum/Diamond). * **Save System:** Use `localStorage` to save the player's Coin count and Upgrade levels so progress is not lost on page reload. ### 4. Mobile Controls & Interaction * **Screen Orientation:** Lock the UI layout to **Portrait Mode** for one-handed playability. * **Touch Handling:** Use `Raycaster` for precise touch detection on the 3D coin. * **Juice & Feedback (Crucial):** * **Animation:** On touch start, the coin should scale down slightly (squash). On touch end, it should bounce back up (stretch) with an elastic easing function. * **Haptics:** Trigger `navigator.vibrate(10)` on every successful tap for tactile feedback. * **UI Layout:** Place the "Score/Coins" display clearly at the top (large font). Place upgrade buttons in a scrollable container at the bottom half of the screen. * **Touch Targets:** Ensure all UI buttons (Upgrades) are at least 44x44 pixels to avoid mis-taps. prevent default browser zooming (`touch-action: none`). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Coin Clicker is the ultimate idle clicker experience that transforms the simple act of clicking into an incredibly engaging progression system. This free-to-play browser game combines the satisfying mechanics of clicking with strategic upgrade management, creating an addictive gameplay loop that keeps players coming back for more.

The game's vibrant golden aesthetic and smooth animations make every click feel rewarding. As you accumulate coins, you'll unlock powerful upgrades that automate and amplify your earning potential, allowing you to progress even when you're not actively playing.

Core Features

Simple Yet Addictive Gameplay

The beauty of Coin Clicker lies in its simplicity. With just your mouse, you can start earning coins immediately. Each click generates currency that you can reinvest into upgrades, creating a satisfying cycle of growth and progression.

Progressive Upgrade System

Unlock and purchase various upgrades that dramatically increase your coin generation rate. From basic click multipliers to automated coin generators, each upgrade brings you closer to reaching the maximum level and ultimate coin-collecting mastery.

Idle Game Mechanics

Even when you're away from your computer, Coin Clicker continues to generate coins through your purchased upgrades. This idle functionality means you're always making progress, creating excitement every time you return to the game.

Cross-Platform Compatibility

Play seamlessly across all devices! Whether you're on a desktop computer during a break or on your mobile phone while commuting, Coin Clicker delivers the same smooth experience without any downloads required.

Game Mechanics

The core gameplay revolves around a simple click-to-earn system that gradually evolves into a complex economy management challenge. Start by clicking the central coin to generate your first earnings, then strategically invest in upgrades that will multiply your efficiency.

Upgrades come in various forms - some increase the coins earned per click, while others provide passive income generation. The key to success is finding the optimal balance between active clicking and passive income sources.

Operation Guide

Basic Controls: - Left Mouse Button : Click to generate coins - Mouse Navigation : Browse through available upgrades - Click Upgrades : Purchase improvements to boost your earning rate

Strategy Tips: - Focus on click multipliers early in the game for immediate impact - Invest in passive income generators for long-term growth - Balance your upgrade purchases to maximize overall efficiency - Check back regularly to reinvest your accumulated coins

Why Play Coin Clicker

Coin Clicker offers the perfect blend of instant gratification and long-term progression that makes it ideal for players of all ages. Whether you have just a few minutes or several hours to play, the game adapts to your schedule.

The satisfaction of watching your coin count grow exponentially, combined with the strategic depth of upgrade management, creates an experience that's both relaxing and engaging. It's the perfect game for stress relief, casual entertainment, or when you need something to occupy your hands during other activities.

Perfect for: - Casual gaming sessions - Stress relief and relaxation - Background entertainment - Players new to idle games - Anyone who enjoys progression-based gameplay

With no time pressure, no complex rules, and immediate rewards for your actions, Coin Clicker delivers pure gaming satisfaction in its most distilled form.

Frequently Asked Questions (FAQ)