All projects
Playable in Browser
View codeWeb Billiards
8-Ball Pool in the Browser
Web Billiards is an 8-ball pool game that runs in the browser, where you can play a computer opponent or a friend on the same device. It has its own physics engine with spin (follow, draw and side), real 8-ball rules for groups, fouls, ball in hand and calling the 8, and an aim line that predicts where the cue ball and object ball will go. The computer opponent finds every possible pot, simulates each through the physics engine, and picks the shot that pots a ball and leaves the best next shot, with easy, normal and hard difficulty. All the art and sound effects are generated in code, with no image or audio files.
TypeScriptPhaserNext.jsReact