All work ( case study · 01 / 10 )
RacketPhone
Game · WebGL · MotionPhone-as-Racket Tennis
3D tennis in the browser on any screen, where your phone is the racket: scan a code, swing, and its motion sensors play every shot.
- Type
- Browser game
- Plays on
- A TV or laptop browser, with a phone as the racket
- Modes
- Vs bot · 2 vs 2 · Online · Ranked · Practice
- Status
- Live
- Stack
( how it plays )
From pocket to court in four points.
The game runs in a browser on a TV or laptop. The racket is whatever phone is in your pocket: no console, no controller and no app to install.
( a match, in five cards )
-
Scan the code
The big screen shows a QR code. Point the phone's camera at it and the controller page opens in the phone's browser.
-
Join
Type a name and tap Join. The phone becomes a player on that screen.
-
Calibrate
Hold the phone like a racket handle and give it a test swing. The racket on screen should follow your hand.
-
Swing
The phone's motion sensors read the stroke: forehand or backhand, topspin, slice or flat, with power from the speed of the swing.
-
Timing aims
A swing that peaks early pulls the ball crosscourt, a late one sends it down the line, and a perfect one gets called out on screen.
( overview )
A console game without the console.
RacketPhone is a 3D tennis game for the browser. The screen draws the court, and each player's phone is a motion-controlled racket, paired by scanning a QR code.
By default the players run to the ball by themselves, so all you do is swing. A thumbstick on the phone takes over the movement for anyone who wants it, and ranked matches require it.
You can play singles against a bot on three levels, doubles with a bot partner, a friend on the same screen, or people on other screens: casual, two against two or ranked. A practice mode feeds balls from a machine.

( reading a swing )
The phone decides what kind of shot it was.
The phone streams its motion sensors sixty times a second and runs the swing detector itself. A swing is recognised around its fastest moment and classified there: which side, how the racket face was tilted, how fast the head was moving.
Each swing is stamped with the time of its peak on the server's clock, so a slow network does not change how your timing is judged.
Online, the server runs the match and is the only judge of what happened. Each screen shows it a moment behind, so the ball moves in smooth arcs, while your own racket follows your phone directly.
( two screens )
One on the wall, one in your hand.


( in numbers )
-
0
Apps to install
-
60
Motion readings a second from the phone
-
3
Bot levels: easy, medium, hard
-
4
Players in an online 2 vs 2
( more screens )
Before, during and after a match.
The broadcast camera: the whole court from the side.
Connecting a phone without the camera: type the screen's code.
The calibration check lists each test swing as the phone reads it.
Close calls come with the margin.
Choosing how to play.
The locker, where each player sets up a character.
Results, with the match's numbers for both players.
( let's build something )
Have a project in mind?
Whether it needs code, design, motion — or all three — I'd love to hear about it.