Baize Break: 3D Nine-Ball Pool With Real Spin
- Skill de Lab
- v0.1.1
- Game creation
Play hotseat nine-ball on a 3D table, in one offline HTML file: place the cue ball, aim with a guide line, set power and draw, follow or side spin, and watch the cue ball slide, roll, bounce off cushions and drop into pockets. Fouls give ball in hand and a legal pot of the 9 wins the rack. The physics, table, balls and sound are all written in code.
Ejemplo
Baize Break pool game
El ejemplo se ejecuta en un marco aislado, sin acceso a esta página.
Ejecutar en línea
Ejecuta en un sandbox de SandBase y consulta los resultados en Lab.
Abrir en Lab ↗Qué obtienes
Bring the table look and room, and optionally the physics feel, the rules, the camera and the HUD text. The Skill returns a downloadable Skill (the pool game project, a customize guide, headless verification) and one playable example table.
Cómo funciona
- 01
Copy the nine-ball table
Baize Break begins with node scripts/new-project.mjs --out my-pool on Node 22.4 or later. Your coding agent reads references/customize.md, which maps cloth and room colours, physics feel, table and pocket geometry, rules, HUD copy, cameras and sound to files and symbols. A prompt can be as short as: make a pool game on a green slate table in a wood-panelled bar room.
- 02
Tune numbers, physics and rules
Numbers live in src/config.js, while physics and rules are plain modules in src/physics/ and src/rules/ with no three.js or DOM. For livelier spin, raise PHYS.strike.spinGain and PHYS.cushion.spinThrow. Pocket coordinates are coupled to TABLE.pocket. The table, balls, cue, room and sounds are all made in code, and any added asset must be listed with its licence in CREDITS.json.
- 03
Build and replay the test shots
npm ci and npm run build:single produce dist-single/index.html, under 8 MiB with no network, storage or WebAssembly. npm run shoot needs Chrome or CHROME_PATH and replays the break, draw, follow, side-spin, scratch, winning 9 and rematch steps, writing shots/report.json with screenshots. The spin steps read real impact velocities, so a wrong tuning fails. All checks must pass.
Preguntas frecuentes
What does Baize Break let two players do?
Baize Break is a 3D nine-ball pool game for two players taking turns on one device. You place the cue ball, aim along a guide line with a ghost-ball contact marker, set power, pick the contact point for side spin, draw or follow, set cue elevation and strike. Banners, turn, score and target chips update after every shot.
Does Baize Break follow real nine-ball rules?
Yes. Baize Break makes you hit the lowest ball first, and fouls such as a scratch, no contact, wrong ball first or no rail after contact hand the other player ball-in-hand. A 9 potted on a foul is respotted, and a legal 9 wins the rack. The foul table is Game.resolveShot() in src/rules/nineball.js.
Can Baize Break play against the computer?
No. Baize Break is two-player hotseat only, with no AI opponent and no online multiplayer. It also does not claim to simulate a specific real table. The cloth friction, ball and cushion constants come from published cue-sports research, and the rest is tuning in src/config.js.
Does Baize Break need a GPU or a model key?
Baize Break needs no model key and makes no network calls, so playing it does not bill anything. It renders with three.js and WebGL. On a machine without a GPU, shoot falls back to SwiftShader, which may drop below the 30 fps floor that the checks expect.
Can Baize Break do jump or massé shots?
No. Baize Break models cue elevation as a loss of pace plus a visual pitch of the cue, with no jump or massé curve, so the ball stays on the cloth. If you need those shots, the physics modules in src/physics/ would have to be extended and new verify steps written.
Can I play Baize Break with only the keyboard?
Yes. In Baize Break the left and right arrows aim, with Shift for fine adjustment, and Space hits or places the cue ball. Z or C switches between the aim and top cameras, and N starts a new match. On a phone you drag on the table to aim, set power on the bar and tap Hit.
Más Skills
Todos los Skills de Game creation →
Seagull Swoop
Build a 3D flight-and-delivery game with light fries, heavy fish, crosswinds and optional ring routes. The gull must bring lunch home; cargo weight changes which openings it can safely reach.

Wedding Cake Wobble
Build a 3D fragile-cargo delivery game around a wobbling wedding cake. Brake before turns, avoid crossing guests and steer around tables. Lost tiers change the score, while a partial delivery can still succeed.

Hermit Tide
Build a 3D route-and-timing game where a hermit crab changes shells to cross a tidal shore. Narrow gaps favour the cap, stronger shells resist waves, and dry stones provide shelter and checkpoints.

Clover Circuit: Estate Cut
Drive a coral ride-on mower through a fenced estate garden. Steering, braking and the moving blade cut actual grass tufts; Overview reveals the genuine trail. Edit three gardens and three scene palettes offline. Coverage counts trimmed tuft centers rather than continuous ground area.

Glide Gates: Lagoon Run
Flap a golden bird through emerald pipe pairs above a turquoise lagoon. Actual fixed-step gravity, swept circle contacts and full-gate scoring power both manual flight and clearly labeled practice. Edit three courses and three scene palettes offline.

3D Interactive Garden Islands
Walk a curved garden, harvest fruit, share gifts, catch butterflies, fish, grow flowers and craft furniture. Four lighting states and one offline HTML with bilingual keyboard and touch controls.

