afzalimdad9/8Ball-Pool-HTML5 — reverse-engineered prompt
Reverse engineered prompt
Build me a browser based 8 ball pool game that I can open from an index.html file and play right away. It should feel like a classic pool game, with a table, cue ball, solids and stripes, the 8 ball, pockets, turn taking, and realistic enough ball movement and collisions.
I want to be able to play solo against a simple AI or play locally with another person on the same computer. Let players aim by dragging with the mouse, show an aiming guide, and shoot when they release. Add sound effects for hits and pockets, and make the game look polished with CSS. If it’s reasonable, include options to customize the table or balls.
Please keep it lightweight using HTML5 canvas, JavaScript, and CSS, no complicated setup. Make sure the rules basically work, including assigning solids or stripes, detecting pocketed balls, handling fouls, and ending the game when the 8 ball is legally pocketed.
Want more depth? Deep Reverse