Arcade · 2026
Cover Drive
Games
A 3D cricket game where you bat: time each ball, pick your gap and loft it for six, chasing a target or batting on until you lose three wickets.
- Built with
- Claude Codethree.js
How to play
- Swing as the ball reaches you: Space, a click, or a tap. A ring closes in on the spot where bat meets ball: swing as it meets the inner ring (green means perfect). G turns the guide off.
- Aim with the left and right arrow keys or the mouse. On a touch screen, tap left or right of the batsman. A well-timed shot goes where the arrow points, and the screen names the gap you’re aiming at.
- Read the ball: pull the short ones, cut the wide ones, flick the ones on your pads, drive the full ones. The green zone on the grass shows where each ball wants to go, and playing across the line needs tighter timing.
- Loft the ball by holding Shift, pressing L, or using the Loft button. Only a lofted shot can be a six, but a mistimed one can be caught, and a yorker can’t be lifted.
- After each swing a meter shows how many milliseconds early or late you were.
- Chase: a new target every game, 12 balls and 3 wickets. Endless: bat until you lose 3 wickets, against bowling that gets quicker every over.
How it was made
- 1
Step 1: The askCan we add a game in arcade something like cricket where user is batsman and hits the balls?
Then picked full 3D like the rest of the base, a normal cricket ground, and two modes: a run chase and an endless innings.
- 2
Step 2: Cricket as plain codeClaude wrote the cricket itself as unit-tested code: deliveries, the ball's flight and bounce, shot timing, ten fielders and the innings. Then it tuned the numbers until a perfectly timed lofted shot was usually six and a mistimed one was often caught.
- 3
Step 3: The ground in three.jsBuilt the stadium, the players and a camera that follows the ball, all drawn in code with no models or image files. The sounds are made in code too.
- 4
Step 4: Played in a browserPlayed it ball by ball in a headless browser, from behind the batsman and side-on, on desktop and phone screens.