Pool - Online Billiards Game

Seele01-Flash
By
Pool is a challenging online billiards game that tests your precision and strategic thinking. Calculate angles, plan your shots, and sink the red ball in increasingly difficult scenarios.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Pool Puzzle Arcade". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Clean, stylized semi-realism similar to Fancade graphics. Use a "Toy-like" aesthetic with bright colors and smooth lighting. * **The Table:** Instead of a full-size pool table, generate varied, smaller "puzzle boards" (green felt texture, wooden borders). The board shape may change per level (square, L-shaped, narrow corridors). * **The Balls:** High-gloss, shiny spheres (MeshStandardMaterial with high `metalness` and low `roughness`). * **Cue Ball:** Pure White. * **Target Ball:** Red (or numbered 3). * **Obstacles:** Black (8-ball) or static crates/blocks. * **Lighting:** Strong overhead directional light to cast crisp shadows, plus an ambient light to keep colors vibrant. * **Camera:** Fixed top-down orthographic camera (or slight isometric perspective) to ensure players can judge angles perfectly on a small mobile screen. * **Performance:** Use simple geometric primitives (BoxGeometry for walls, SphereGeometry for balls). Avoid high-res textures; use vertex colors or simple materials to ensure 60FPS on low-end mobile devices. ### 2. Audio Requirements * **BGM:** A relaxing, looped "Lounge Jazz" or "Lo-fi Beat" track to encourage focus without stress. * **Sound Effects (SFX):** * **Impact:** A crisp, sharp "Clack" sound when balls collide (volume proportional to impact velocity). * **Cushion:** A duller "Thud" sound when a ball hits a wall. * **Shot:** A "Swish" sound upon releasing the cue stick. * **Success:** A satisfying "Plunk" and a magical chime when the target ball enters a pocket. * **Fail:** A buzzer or "womp-womp" sound if the Cue Ball falls in a hole. ### 3. Gameplay Loop * **Core Mechanic:** A turn-based physics puzzle. The player uses the Cue Ball to hit the Red Ball into a specific hole. * **Rules:** 1. **Win Condition:** The Red Ball enters a pocket. 2. **Lose Condition:** The Cue Ball enters a pocket, or the Red Ball stops moving without entering a pocket (after a shot). 3. **Obstacles:** Later levels introduce static blocks or balls that shouldn't be touched. * **Physics:** Implement simple 2D collision physics (circle-circle and circle-box) on the X/Z plane. Use a friction coefficient so balls slow down and stop naturally. * **Level Progression:** Start with a straight shot. Level 2 requires a bank shot (bounce off wall). Level 3 adds an obstacle. ### 4. Mobile Controls & Interaction * **Input Method:** "Pull-back" slingshot mechanic (Angry Birds style). 1. **Touch Start:** Anywhere on the screen (or specifically on the Cue Ball). 2. **Touch Drag:** Pull back to set power and angle. 3. **Touch Release:** Shoot the Cue Ball. * **Visual Aid (Crucial):** While dragging, render a **dotted trajectory line** showing the direction the ball will travel. If possible, show a "ghost ball" where the collision will happen. * **Orientation:** **Portrait Mode** optimized. The table should fit width-wise. * **UI/UX:** * **Reset Button:** A large (min 44x44px) refresh icon in the top right corner for quick restarts. * **Haptics:** Trigger `navigator.vibrate(5)` on wall impact and `navigator.vibrate(15)` on ball collision for tactile feedback. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Pool is an engaging online billiards game that puts your pooling skills to the ultimate test. This skill-based sports game challenges players to master the art of precision shooting with realistic physics and increasingly complex scenarios. Whether you're a casual player or a billiards enthusiast, this game offers endless entertainment with its intuitive controls and challenging gameplay.

Core Features

Realistic Pool Physics

Experience authentic billiards mechanics with accurate ball movement, collision detection, and cue stick dynamics. Every shot feels natural and responsive, making your gaming experience as close to real pool as possible.

Progressive Difficulty System

Start with simple shots and gradually face more complex scenarios that will challenge even experienced players. Each level presents unique obstacles and requires different strategies to master.

Cross-Platform Compatibility

  • Completely Free : No downloads, installations, or payments required
  • Universal Access : Play directly in your web browser on any device
  • Mobile Optimized : Perfectly adapted for smartphones and tablets
  • Desktop Ready : Full support for computers and laptops

Intuitive Controls

The game features simple yet precise controls that anyone can learn quickly. The drag-and-release mechanism provides excellent control over shot power and direction.

Game Mechanics

In Pool, your objective is straightforward yet challenging: sink the red billiard ball into the designated hole using the cue ball. However, don't let the simple concept fool you - each scenario presents unique challenges that require:

  • Angle Calculation : Determine the perfect trajectory for complex shots
  • Route Planning : Visualize the ball's path and potential rebounds
  • Power Control : Apply just the right amount of force for each shot
  • Precision Aiming : Line up shots with millimeter accuracy

Operation Guide

Mastering the controls is essential for success:

  • Click and Drag : Hold down the mouse button on the cue stick and drag to aim your shot
  • Direction Control : Move the mouse to adjust the angle and direction
  • Power Adjustment : The length of your drag determines shot power
  • Release to Shoot : Let go of the mouse button to execute your shot

Advanced Techniques

  • Bank Shots : Use cushion rebounds to reach difficult angles
  • Soft Touch : Apply gentle pressure for delicate positioning shots
  • Power Shots : Use maximum force when distance is critical
  • Spin Control : Master advanced cue ball control for expert-level play

Why Play This Pool Game

Perfect for All Skill Levels

Whether you're new to billiards or an experienced player, this game adapts to your skill level. Beginners can learn fundamental techniques while experts can perfect their precision shooting.

Brain Training Benefits

Pool isn't just entertainment - it's mental exercise. The game improves: - Spatial reasoning through angle calculations - Strategic thinking via shot planning - Hand-eye coordination through precise aiming - Problem-solving skills in challenging scenarios

Convenient Gaming Experience

No need for a physical pool table or cue sticks. Enjoy authentic billiards action anywhere, anytime. Perfect for quick gaming sessions during breaks or extended play sessions.

Competitive Element

Challenge yourself to achieve higher scores and master increasingly difficult levels. Track your progress and see how your skills improve over time.

Frequently Asked Questions (FAQ)