Bubble Spinner - Classic Bubble Shooter Game

Seele01-Flash
By
Bubble Spinner is a classic bubble shooter puzzle game with a unique spinning twist. Match colored bubbles, clear the board, and achieve high scores in this addictive arcade-style game that's perfect for all ages.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Bubble Spinner". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A "2.5D" aesthetic. The gameplay takes place on a 2D plane (x, y axes), but the bubbles are rendered as 3D spheres with a "Candy" or "polished plastic" look. Use `MeshStandardMaterial` with moderate roughness and high metalness for a vibrant, shiny finish. * **Color Palette**: Replicate the vibrant, saturated colors from the reference: Hot Pink, Cyan, Bright Yellow, Deep Blue, Orange, and Green. The background should be a clean, high-contrast white or very light gray to ensure visibility outdoors on mobile screens. * **Key Entities**: * **The Cluster**: A central hexagonal grid of bubbles attached to a pivot point in the center of the screen. * **The Shooter**: A launcher located at the bottom center of the screen. * **Next Bubble**: A preview of the next bubble to be fired, placed near the shooter. * **Performance**: Use `InstancedMesh` for the bubbles to minimize draw calls, ensuring smooth 60fps performance on mobile devices. ### 2. Audio Requirements * **BGM**: A relaxed, looping "Elevator Bossa Nova" or light "Puzzle Synth" track. It should be non-intrusive to aid concentration. * **Sound Effects (SFX)**: * **Shoot**: A soft "Thwip" or air-compression sound. * **Impact**: A solid "Thud" or wooden click when a bubble hits the cluster but doesn't pop. * **Spin**: A subtle "Whirring" or "Ratchet" sound that plays while the central cluster is rotating. * **Pop/Clear**: A satisfying, high-pitched "Plop" or bubble-wrap bursting sound. * **Game Over**: A descending chime. ### 3. Gameplay Loop * **Core Mechanic (The Twist)**: Unlike traditional bubble shooters, the target bubbles are **not static**. They form a cluster attached to a free-spinning center pivot. * **Physics Interaction**: When the player shoots a bubble and it hits the cluster: 1. The bubble attaches to the grid. 2. **Torque Application**: The force of the impact must cause the entire cluster to spin physically based on the angle of impact and the distance from the center. (e.g., hitting the edge causes faster spin than hitting near the center). 3. Friction/Damping: The spin should gradually slow down and stop. * **Matching Logic**: If the attached bubble creates a group of 3 or more of the same color, they explode (are removed). * **Chain Reactions**: Any bubbles that are no longer connected to the central pivot after a match must fall off (gravity effect) and fade away. * **Win/Loss**: The game is an endless high-score mode. The game ends if the bubble cluster grows too large and touches the edges of the screen (the "Deadline"). ### 4. Mobile Controls & Interaction * **Control Scheme**: "Touch-Drag-Release". * **Touch & Drag**: Touching anywhere on the screen and dragging creates a visible **Trajectory Line** (dashed line or raycast helper) coming from the shooter, allowing for precision aiming. * **Release**: Lifting the finger fires the bubble along the trajectory. * **Orientation**: Portrait Mode optimized (vertical layout). * **Haptic Feedback**: Trigger a short vibration (using `navigator.vibrate`) when a bubble pops or when the cluster spins rapidly. * **UI Layout**: * Score display at the top left (large, readable font). * Restart button at the top right (min size 44x44px). * All UI elements should float above the 3D canvas. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Bubble Spinner

Bubble Spinner is a beloved classic in the bubble shooter genre, earning an impressive 4.7/5 rating from players worldwide. This engaging puzzle game combines traditional bubble-popping mechanics with an innovative spinning board feature that adds a fresh challenge to the familiar gameplay. The game offers hours of entertainment with its colorful design, smooth mechanics, and progressively challenging levels.

Core Features

Unique Spinning Mechanics

Unlike traditional bubble shooters, Bubble Spinner features a rotating game board that spins as you play. This dynamic element adds strategic depth, requiring players to think ahead and adapt their shooting strategy as the bubble formation constantly shifts.

Perfect for All Skill Levels

  • Easy to Learn : Simple point-and-click controls make it accessible to beginners
  • Hard to Master : The spinning mechanics and strategic planning keep experienced players engaged
  • All Ages Content : Family-friendly gameplay suitable for children and adults alike
  • Progressive Difficulty : Levels become more challenging as you advance

Cross-Platform Compatibility

Built with HTML5 technology , Bubble Spinner runs smoothly on: - Desktop computers and laptops - Smartphones and tablets - All modern web browsers - No downloads or installations required

Competitive Elements

  • High Score System : Compete with players worldwide for the top spots
  • Score Multipliers : Chain combinations for massive point bonuses
  • Achievement Tracking : Monitor your progress and improvements
  • Leaderboards : See how you rank against other players globally

Gameplay Mechanics

Color Matching Strategy

The core objective is to match three or more bubbles of the same color to make them disappear. Success requires: - Quick color recognition - Precise aim and timing - Strategic planning for chain reactions - Efficient use of limited shots

Spinning Board Challenge

The constantly rotating board adds layers of complexity: - Bubble positions continuously change - Timing becomes crucial for accurate shots - Players must anticipate movement patterns - Creates unique puzzle scenarios in every game

How to Play

Basic Controls

  • Mouse Movement : Aim your bubble shooter in the desired direction
  • Left Click : Fire the bubble toward your target
  • Strategy : Match your bubble's color with clusters of the same color
  • Goal : Clear all bubbles from the spinning board to advance

Winning Strategies

  1. Plan Ahead : Study the spinning pattern before shooting
  2. Create Chain Reactions : Look for opportunities to clear multiple groups
  3. Use Bank Shots : Bounce bubbles off walls for difficult angles
  4. Save Special Bubbles : Use power-ups and special bubbles strategically
  5. Time Your Shots : Wait for the optimal moment when the board rotates

Scoring System

  • Base points for each bubble cleared
  • Bonus multipliers for chain reactions
  • Extra points for clearing large clusters
  • Time bonuses for quick completions
  • Perfect clear bonuses for exceptional performance

Why Play Bubble Spinner

Stress Relief and Relaxation

Bubble Spinner provides the perfect balance of mental stimulation and relaxation. The satisfying bubble-popping sounds, colorful visuals, and strategic gameplay create a meditative experience that helps reduce stress and improve focus.

Mental Benefits

  • Hand-Eye Coordination : Improves precision and reaction time
  • Strategic Thinking : Develops planning and problem-solving skills
  • Pattern Recognition : Enhances visual processing abilities
  • Concentration : Builds sustained attention and focus

Accessibility and Convenience

  • Completely Free : No hidden costs or premium features
  • Instant Play : No registration or account creation required
  • Save Progress : Game automatically saves your high scores
  • Mobile Optimized : Perfect for gaming on-the-go
  • Embeddable : Can be integrated into websites and blogs

Social and Competitive Aspects

Compete with friends and players worldwide through the integrated high score system. Share your achievements and challenge others to beat your records in this timeless puzzle game that never goes out of style.

Frequently Asked Questions (FAQ)