8 Ball Billiards Classic

Seele01-Flash
By
8 Ball Billiards Classic brings authentic pool hall experience to your browser. Play against AI or challenge friends in this free, realistic billiards simulation with intuitive controls.

Prompt

MODEL: Seele01-Flash
Based on the provided game screenshot and description, here is the detailed technical prompt for generating the Three.js code. *** Please use Three.js to generate a **mobile-first game** with the theme "**8 Ball Billiards Classic**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** * **Perspective:** Fixed **Top-down Orthographic Camera** to simulate a classic 2D pool experience but with 3D assets. The camera should cover the entire table with a comfortable margin for UI. * **Table:** A high-quality green felt table (standard pool green hex: #0b6623) with wooden rails (dark oak texture). Include 6 distinct pockets (holes) with shadow depth. * **Balls:** 16 spheres in total (1 Cue ball, 7 Solids, 7 Stripes, 1 Black 8-ball). They must have high shininess (specular highlights) to simulate polished resin. Use distinct textures for numbers and stripes. * **Cue Stick:** A simple, sleek wooden taper stick. * **Lighting:** Soft ambient lighting combined with a directional light casting subtle shadows from the balls onto the felt to give depth, simulating overhead bar lighting. * **Mobile Optimization:** * Use low-poly sphere geometries (e.g., `SphereGeometry(radius, 16, 16)`) to maintain high frame rates on mobile. * Use simple materials (`MeshStandardMaterial` or `MeshPhongMaterial`) rather than expensive PBR shaders. * Implement efficient shadow maps (disable if frame rate drops below 30fps). ### 2. Audio Requirements * **BGM (Background Music):** A loop of smooth, relaxing **Lounge Jazz** or **Lo-Fi beats**. It should be unobtrusive, creating a calm "gentleman's club" atmosphere. * **SFX (Sound Effects):** * **Cue Hit:** A sharp "clack" sound when the stick hits the cue ball (intensity scales with power). * **Ball Collision:** Hard resin "clack" sounds when balls hit each other. * **Rail Bounce:** A duller "thud" sound when balls hit the rubber cushions. * **Pocketing:** A satisfying "thunk-rattle" sound when a ball drops into a pocket. * **UI:** Soft clicks for menu selection. ### 3. Gameplay Loop * **Core Mechanics:** Standard 8-Ball Rules. 1. **Break:** Player breaks the rack. 2. **Assignment:** First ball potted determines "Solids" (1-7) or "Stripes" (9-15). 3. **Turn-based:** Player continues shooting as long as they pot their designated balls. If they miss or foul, turn passes to opponent (AI or Local P2). 4. **Win Condition:** Pot all designated balls, then pot the 8-ball. 5. **Loss Condition:** Potting the 8-ball early, or potting the cue ball (scratch) when shooting for the 8-ball. * **Physics:** Realistic 2D physics engine (using Matter.js or a custom simple 2D collision resolver integrated into Three.js) is critical. Balls must have friction (deceleration) and elasticity (bounciness against rails). * **Modes:** * **PvAI:** Player vs Computer (5 difficulty levels modifying AI aiming precision). * **PvP:** Local "Pass and Play". ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Landscape Mode** is mandatory to maximize table visibility. * **Touch Controls (Two-Step Process):** 1. **Aiming:** Drag a finger anywhere on the screen (or use a virtual slider) to rotate the cue stick around the cue ball. Display a **white trajectory line (guide)** showing the predicted path of the cue ball and the first target ball hit (raycasting). 2. **Shooting:** A "Power Bar" UI element on the side (e.g., right edge). Drag the power handle *down* to charge power, release to shoot. * **Fine Tuning:** Add a small "Fine Tune" wheel or buttons in the UI to adjust aim by fractional degrees for precision shots. * **Feedback:** * **Haptic:** Trigger a short vibration (using `navigator.vibrate`) when the cue ball strikes another ball or hits a rail. * **Visual:** The guide line should change color (e.g., Green to Red) if the shot is blocked or impossible. ### 5. UI Layout (Mobile) * **Top Bar:** Player Names/Avatars, Score (Balls remaining to be potted), Pause Button. * **Right Side:** Vertical Power Gauge (height 50% of screen). * **Bottom/Corner:** Button to toggle "Overhead View" (if using 3D camera) or "Spin Control" (optional advanced feature). * Ensure all buttons have a minimum touch target size of 44x44 pixels. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

8 Ball Billiards Classic is a premium online pool game that delivers an authentic billiards experience right in your web browser. This sports simulation game perfectly recreates the classic 8-ball pool rules and mechanics, offering both single-player AI challenges and exciting two-player matches. Whether you're a pool hall veteran or complete beginner, the intuitive controls and realistic physics make every shot feel satisfying.

Core Features

This billiards game stands out with several compelling features:

Realistic Pool Physics

Experience authentic ball movement and collision physics that mirror real-world pool mechanics. Every shot responds naturally to power, angle, and spin, creating a genuine billiards experience.

Flexible Game Modes

  • Single Player : Challenge AI opponents with 5 adjustable difficulty levels
  • Two Player : Face off against friends on the same device
  • Practice Mode : Perfect your shots without pressure

Professional Gaming Environment

The game features a beautifully rendered pool table with classic green felt, wooden rails, and professional-grade graphics. Smooth animations and realistic sound effects complete the immersive experience.

Accessibility Features

  • Visual trajectory guides for beginners (can be disabled for experts)
  • Statistics tracking to monitor your progress
  • Cross-platform compatibility for desktop and mobile devices

Gameplay Mechanics

Classic 8-Ball Rules

Follow traditional 8-ball pool rules: pocket all your assigned balls (solids or stripes) before sinking the 8-ball to win. Your ball group is determined by the first ball you successfully pocket during the game.

Strategic Shot Planning

Success requires more than just accurate aiming. Consider ball positioning, cue ball control, and defensive plays to outmaneuver your opponent. Each shot affects the table layout, demanding careful strategic thinking.

Power and Precision Control

The intuitive mouse-based control system lets you adjust shot power by dragging the cue stick backward. Fine-tune your angle and power to execute everything from gentle tap shots to powerful break shots.

Controls Guide

Mastering the controls is straightforward:

  • Mouse Movement : Aim your cue stick around the cue ball
  • Click and Drag Back : Set shot power by pulling the cue stick
  • Release : Execute the shot with your chosen power level
  • Settings Menu : Adjust AI difficulty and visual aids

The game responds smoothly to both precise movements and quick adjustments, accommodating different playing styles and skill levels.

Why Play 8 Ball Billiards Classic

This game offers several advantages over other online pool games:

Complete Accessibility

  • Completely Free : No payments, subscriptions, or hidden costs
  • No Download Required : Play instantly through any modern web browser
  • Cross-Platform : Works seamlessly on Windows, Mac, iOS, and Android devices

Skill Development

Whether you're learning pool fundamentals or sharpening advanced techniques, the adjustable difficulty settings and optional visual aids help players of all skill levels improve their game.

Social Gaming

The two-player mode transforms any device into a portable pool table, perfect for challenging friends, family, or colleagues during breaks.

Professional Quality

Unlike many casual browser games, 8 Ball Billiards Classic maintains high production values with smooth graphics, realistic physics, and responsive controls that rival desktop pool simulations.

Frequently Asked Questions (FAQ)