Lightning Break - Pool Billiards Game

Seele01-Flash
By
Lightning Break is a precision pool billiards game where talent, skill, and geometry determine your success. Master the art of sinking balls in the correct order to become a pool shark.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Lightning Break". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: A clean, semi-realistic 3D billiards simulation. The aesthetic should evoke a classic pool hall atmosphere but with bright, readable colors suitable for mobile screens. * **The Table**: A standard 6-pocket pool table with a high-quality green felt texture. The rails should be wood-textured. The table geometry should be optimized (low-poly) but look smooth. * **The Balls**: Create a set of 9 balls (numbered 1-9) plus a white cue ball. Use `MeshStandardMaterial` with high `roughness: 0.1` and `metalness: 0.3` to simulate the shiny, polished resin surface. * **Lighting**: Use a central `SpotLight` overhead to simulate a table lamp, casting soft dynamic shadows for depth perception. Add weak `AmbientLight` to ensure pockets aren't pitch black. * **Mobile Optimization**: Limit the scene to the table and immediate surroundings. Do not render a complex room background; use a simple dark purple gradient background (matching the reference image) to save GPU resources. ### 2. Audio Requirements * **BGM**: A smooth, low-tempo Jazz or Lounge piano track that loops seamlessly. It should be relaxing to aid concentration. * **Sound Effects (SFX)**: * **Cue Hit**: A sharp "thwack" sound proportional to the force applied. * **Ball Collision**: A high-pitched "clack" for hard hits and a duller sound for soft hits. * **Rail Hit**: A solid "thud". * **Pocket**: A satisfying "rattle and drop" sound when a ball is sunk. * **UI**: Subtle clicks for menu interactions. ### 3. Gameplay Loop * **Core Mechanic**: The player must clear the table by sinking balls into pockets. To fit the "Lightning Break" theme and "sink in the right order" description, implement a **Time Attack 9-Ball Ruleset**. * **Rules**: * The player must always hit the lowest numbered ball on the table first with the cue ball. * If the wrong ball is hit first -> Foul (Time penalty). * If the cue ball is potted (Scratch) -> Reset cue ball to center (Time penalty). * Win Condition: Sink the 9-ball legally. * **Physics**: Implement 2D physics logic (using a library like Cannon.js or custom verlet integration) restricted to the X/Z plane. Balls must have drag (friction) to eventually stop rolling and restitution for bouncing off rails. ### 4. Mobile Controls & Interaction * **Orientation**: Landscape mode is preferred for a wide view of the table. * **Control Scheme (Two-Step)**: 1. **Aiming**: Touching and dragging anywhere on the *left* side of the screen rotates the cue stick around the cue ball. A **projection line (raycast)** must appear showing the predicted path of the cue ball to help with "geometry." 2. **Shooting**: A vertical UI slider on the *right* side of the screen controls power. Dragging down pulls the cue stick back; releasing it shoots the ball. * **Camera**: A top-down perspective (Ortho or Perspective camera with a slight angle) that pans slightly to follow the action but snaps back to the cue ball when it stops. * **Feedback**: * **Haptic**: Trigger a short vibration (if supported) when the ball hits a rail or another ball. * **Visual**: A small particle effect or text popup ("Great Shot!") when a ball is sunk. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Lightning Break is an engaging online pool billiards game that challenges players to demonstrate precision, strategy, and geometric thinking. With a solid 3.3/5 rating from players, this sports game offers an authentic pool hall experience right in your browser. The game emphasizes skill-based gameplay where every shot counts and proper ball sequencing is crucial for success.

Core Features

Realistic Pool Physics

Experience authentic billiards mechanics with realistic ball movement, collision physics, and table dynamics. Every shot feels natural and responds to your aiming precision and power control.

Strategic Gameplay

Success requires more than just sinking balls - you must carefully plan your shots, consider ball positioning, and execute precise sequences. The game rewards strategic thinking and geometric understanding.

Accessible Click Controls

The intuitive click-based control system makes the game easy to learn but challenging to master. Simply click to aim and shoot, but mastering angle calculations and power control takes practice.

Skill Progression System

Develop from a beginner to a pool shark as you improve your shot accuracy, strategic planning, and understanding of advanced pool techniques like bank shots and combination plays.

Game Mechanics

Lightning Break focuses on precision pool play where geometric understanding is essential. Players must analyze angles, predict ball paths, and execute shots with perfect timing. The game emphasizes the mathematical aspects of billiards, making it both entertaining and educational.

Ball Sequencing Challenge

The core challenge revolves around sinking balls in the correct order. This requires forward planning, position play, and the ability to set up subsequent shots while completing current objectives.

Operation Guide

Basic Controls: - Mouse Click : Aim and shoot your cue stick - Mouse Movement : Adjust aiming direction and angle - Click Power : Control shot strength through click timing - In-Game Help : Access detailed instructions within the game

Gameplay Tips: - Study the table layout before taking your shot - Consider ball positioning for future shots - Use gentle shots for precision, powerful shots for breaks - Practice bank shots to improve your geometric skills - Plan 2-3 shots ahead when possible

Why Play This Game

Perfect for Pool Enthusiasts : Whether you're a billiards beginner or experienced player, Lightning Break offers engaging gameplay that improves your real-world pool skills through geometric thinking and strategic planning.

Brain Training Benefits : The game enhances spatial reasoning, geometric understanding, and strategic thinking skills while providing entertainment.

Instant Access : No downloads or installations required - start playing immediately in any modern web browser on desktop or mobile devices.

Suitable for All Ages : With an "All Ages" content rating, this game provides family-friendly entertainment that's both fun and educational.

Skill Development : Progress from casual player to pool expert by mastering advanced techniques like position play, safety shots, and complex ball sequences.

Frequently Asked Questions (FAQ)