Claude Fable 5.2
Seven-a-side 3D football with referees, offside, cards, penalties and tactics, in one HTML file.
Pocket Soccer 3D is a seven-a-side 3D football game that plays in a browser on a phone, a tablet or a desktop. ShaunPrice built it with Claude Fable 5.2 in a single conversation, and it covers far more of real football than you would expect from one HTML file: a referee, offside, yellow and red cards, free kicks with a defensive wall, penalties, injuries, substitutions, added time and penalty shoot-outs.
The game was designed for touch. The left thumb runs, and SHOOT, PASS, TACKLE, SWITCH and RUN buttons sit on the right. Hold the phone sideways for a broadcast camera or upright for a view from behind your team. It can also be installed like an app (Install app on Android, Add to Home Screen on iPhone) and played offline.
The whole game is a single HTML file of about 1.2 MB using Three.js. The source is public on GitHub.
| Action | Touch | Keyboard |
|---|---|---|
| Run | Drag anywhere on the left side | Arrows or WASD |
| Shoot | SHOOT: tap for a low drive, hold to load power and lift | Space |
| Pass | PASS: to the team-mate inside the white ring | Shift |
| Sliding tackle | Red button (without the ball) | – |
| Switch player | Blue button (without the ball) | – |
| Sprint | Hold the green RUN button | C |
The yellow ring marks the player you control. The white ring shows who a pass will go to, and it follows the direction you aim.
Each match earns:
The total is multiplied by the level number, so later opponents are worth far more. Any unlocked level can be replayed for a better score, and the best results go on the Hall of Fame (kept on this device).
Each step up makes the opposition faster, better at winning the ball, more accurate, and gives them a stronger goalkeeper.
Press Play Game above and Pocket Soccer 3D loads from the author's own site (shaunprice.github.io) inside a sandboxed frame. There is nothing to install.
Under the hood it uses Three.js.
On a phone, tap Play and the game opens fullscreen with its own touch controls.
Yes, it was designed for phones. Drag on the left side to run and use the SHOOT, PASS, TACKLE, SWITCH and RUN buttons on the right. Sideways gives a broadcast view, upright a view from behind your team.
Eight opponents of rising quality, from Dockside Juniors to Titans XI. Winning a match unlocks the next one.
100 per goal, 500 for a win plus 150 per goal of margin, 150 for a draw plus 250 for winning the shoot-out, all multiplied by the level number.
Yes. Open it at its own address (shaunprice.github.io/soccer-3d) and install it: Install app on Android or Chrome, or Share → Add to Home Screen in Safari on iPhone and iPad.
Yes. Fouls, offside and shadows can each be switched off under Options, and match length can be 2, 4 or 6 minutes.
Yes. Pocket Soccer 3D runs in your browser for free, with no download, account or install. It loads from the author's own site (shaunprice.github.io).
Yes. It has its own touch controls. It works with the phone held either way.
Pocket Soccer 3D was made by ShaunPrice, using Claude Fable 5.2.
The author hasn't published the prompt. Many of these games came out of a long back-and-forth with the model rather than a single prompt.
The source is public at https://github.com/ShaunPrice/soccer-3d.
First-person badminton where your webcam tracks your hand: grip, swing, smash.