Selected Work / Hobby Project

Heiyu Pool.

A personal coding project turning a TV into a pool table and a smartphone into the cue controller.

Hobby ProjectInteractive GameNext.jsSocket.IOMatter.js
Heiyu Pool TV game and smartphone controller

01 / The Idea

Two screens. One pool table.

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

A playable pool game.

Phone as the controller

Aim, adjust shot power, select cue spin and shoot directly from your smartphone.

Play on the big screen

A full 15-ball pool table with player turns, pockets, scoring and ball animations.

QR code and PIN pairing

Connect your phone to the TV game through a real-time Socket.IO connection.

03 / Behind The Build

Built with web technology.

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

Still improving the game.

Next on the list are solo and two-player controller modes, better foul rules, more realistic cue spin, tighter pockets and improved sound recordings.

Fancy a game?

Open the game on your TV or computer and connect your phone.

Play Heiyu Pool ↗