Phone as the controller
Aim, adjust shot power, select cue spin and shoot directly from your smartphone.
Selected Work / Hobby Project
A personal coding project turning a TV into a pool table and a smartphone into the cue controller.

01 / The Idea
Heiyu Pool began as a hobby project to see whether a smartphone could replace a traditional game controller.
The TV displays the pool table while the phone handles aiming, shot power, spin and shooting.
02 / What I've Built
Aim, adjust shot power, select cue spin and shoot directly from your smartphone.
A full 15-ball pool table with player turns, pockets, scoring and ball animations.
Connect your phone to the TV game through a real-time Socket.IO connection.
03 / Behind The Build
Next.js, React and TypeScript power the game interface and phone controller.
Socket.IO sends controller commands to the game through a Node.js server hosted on Render.
Matter.js handles the physics, with custom code for pockets, player turns, cue spin, animations and sounds.
Work In Progress
Next on the list are solo and two-player controller modes, better foul rules, more realistic cue spin, tighter pockets and improved sound recordings.
Open the game on your TV or computer and connect your phone.
Play Heiyu Pool ↗