Break the Glass - Physics Puzzle Game

Seele01-Flash
By
Break the Glass is an addictive physics-based puzzle game where you launch balls to shatter wine glasses using precision, timing, and gravity. With minimalist visuals and satisfying destruction effects, each level challenges your problem-solving skills.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Break the Glass". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** "Minimalist Noir & Vintage". Use a strict color palette based on the reference: Deep Black background (`#111111`), Cream/Beige (`#F5E6CA`) for the balls and UI text, and Deep Wine Red (`#8B0000`) for the liquid and glass shards. * **Camera:** Use an Orthographic Camera fixed in a side-view (2.5D) perspective to ensure consistent gameplay across different mobile aspect ratios. * **Key Objects:** * **The Ball:** A simple sphere with a baseball texture or stitch lines (cream color). * **The Wine Glass:** A semi-transparent model (use `MeshPhysicalMaterial` with transmission) shaped like a wine glass. It should contain a red cylinder representing wine. * **Obstacles:** Static or moving rectangular platforms (wooden texture or solid beige) that balls can bounce off. * **VFX (Crucial):** When a ball hits a glass, do not calculate real-time mesh fracturing. Instead, immediately `visible = false` the glass and spawn an explosion of 10-15 triangular shards and red particles (simulating wine splashes) that fall with gravity. * **Mobile Optimization:** Use low-poly geometries (LatheGeometry for glasses). Limit particle lifespan to 2 seconds to prevent frame drops. ### 2. Audio Requirements * **BGM:** A smooth, low-tempo "Lounge Jazz" or "Film Noir" bass loop to match the classy vintage aesthetic. * **Sound Effects (SFX):** * **Glass Break:** A crisp, high-pitched shattering sound (essential for satisfaction). * **Bounce:** A dull wooden thud when the ball hits platforms. * **Win/Success:** A "clinking glasses" toast sound or a short jazz piano chord. * **Fail:** A dissonant brass sound. ### 3. Gameplay Loop * **Objective:** Shatter all wine glasses on the screen using a limited number of balls (e.g., 3 balls per level). * **Mechanic - The Launcher:** A ball spawns at the top of the screen and swings back and forth automatically (Pendulum motion) OR moves horizontally. The player must wait for the perfect angle/position. * **Physics:** Use a physics engine (like Cannon.js or a simple custom gravity/velocity implementation). The ball must have "bounciness" (restitution) to ricochet off walls/floors to hit hard-to-reach glasses. * **Win Condition:** `GlassesRemaining == 0`. Trigger a "Level Complete" UI. * **Lose Condition:** `BallsUsed == MaxBalls` AND `GlassesRemaining > 0`. Trigger a "Retry" UI. ### 4. Mobile Controls & Interaction * **Orientation:** Portrait Mode (Vertical) to allow for vertical ball dropping mechanics. * **Input Method:** **"One-Tap Gameplay"**. The entire screen is the button. * *Action:* When the player taps anywhere on the screen, the currently moving/swinging ball is released instantly, affected by its current momentum and gravity. * **UI Layout:** * Top Left: "Balls Left" indicator (represented by icons, not just text). * Top Right: Current Level. * Center (Overlay): Minimalist "Tap to Start" or "Game Over" modal with large, thumb-friendly buttons (min-height 50px). * **Haptic Feedback:** Trigger `navigator.vibrate(50)` specifically when a glass shatters to provide tactile satisfaction. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Break the Glass is a captivating physics-based puzzle game that combines strategy, precision, and the satisfying thrill of destruction. Your mission is simple yet challenging: launch balls strategically to shatter every wine glass on each level. With its minimalist aesthetic and realistic physics engine, the game delivers an incredibly satisfying experience as you watch glasses explode into beautiful fragments.

This brain-teasing puzzle game features intuitive one-click controls that are easy to learn but challenging to master. Each level presents a unique layout with wine glasses positioned in strategic locations, requiring you to think carefully about trajectory, timing, and the laws of physics to succeed.

Core Features

Realistic Physics Engine

The game's advanced physics system makes every ball bounce, roll, and collision feel authentic. Gravity affects every movement, and you'll need to account for momentum, angles, and surface interactions to achieve the perfect shot.

Strategic Puzzle Gameplay

Each level is a carefully crafted puzzle that requires both logical thinking and precise execution. You'll encounter various obstacles, platforms, and mechanisms that add layers of complexity to your glass-breaking mission.

Limited Ball Challenge

With a restricted number of balls per level, every shot counts. This limitation adds strategic depth, forcing you to plan your moves carefully and find the most efficient solutions.

Progressive Difficulty

Starting with simple layouts, the game gradually introduces more complex scenarios with multiple glass arrangements, moving platforms, and chain reaction opportunities.

Satisfying Visual Effects

Watch as wine glasses shatter into realistic fragments with stunning visual effects. The minimalist art style emphasizes the beauty of destruction, making every successful hit incredibly rewarding.

Game Mechanics

The core gameplay revolves around understanding physics principles:

  • Trajectory Planning : Calculate the perfect angle and force for your ball launch
  • Bounce Mechanics : Use walls, platforms, and obstacles to redirect your balls
  • Chain Reactions : Trigger cascading effects to break multiple glasses with single shots
  • Gravity Utilization : Work with and against gravity to reach difficult targets
  • Precision Timing : Some levels require split-second timing for moving elements

Operation Guide

Basic Controls

  • Tap or Click : Release a ball from the launcher
  • Aim Carefully : Position your cursor/finger to determine launch direction
  • Observe First : Study each level layout before making your first shot
  • Plan Strategy : Identify the optimal sequence for breaking all glasses

Advanced Techniques

  • Bank Shots : Use walls and surfaces to reach glasses around corners
  • Multi-Glass Combos : Position shots to break multiple glasses simultaneously
  • Platform Utilization : Use moving platforms and mechanisms to your advantage
  • Conservation Strategy : Save balls by finding efficient multi-target solutions

Winning Conditions

To complete each level, you must: 1. Break every single wine glass on the screen 2. Use only the allocated number of balls 3. Work within any time constraints (if applicable)

Why Play This Game

Break the Glass offers the perfect combination of mental stimulation and visceral satisfaction. It's ideal for puzzle enthusiasts who enjoy physics-based challenges and anyone who finds stress relief in controlled destruction. The game provides:

  • Quick Gaming Sessions : Perfect for short breaks with bite-sized levels
  • Mental Exercise : Enhances spatial reasoning and problem-solving skills
  • Stress Relief : Satisfying destruction mechanics provide excellent stress release
  • Progressive Challenge : Difficulty scales perfectly from beginner to expert
  • Universal Appeal : Simple concept that's accessible to all ages

Whether you're a casual gamer looking for entertainment or a puzzle aficionado seeking your next challenge, Break the Glass delivers an engaging experience that combines strategy, physics, and pure satisfaction. The game's minimalist design ensures you can focus entirely on the puzzle-solving aspect while enjoying the rewarding visual and audio feedback of successful glass destruction.

The combination of limited resources, realistic physics, and creative level design makes every victory feel earned and every glass break incredibly satisfying.

Frequently Asked Questions (FAQ)