Arcade basketball

Grab a ball off the rack, swing, let go: it bounces off the backboard, rattles the rim and the scoreboard counts.

A capture of the project running in Graspable's emulated headset. An arcade basketball booth seen from the headset: four orange basketballs on a rack in front, a white backboard with an orange rim and net 3 metres away, a scoreboard reading score 0 and 42 seconds above it, chain-link cages left and right.

Open the appContinue from it in GraspableRuns in a browser, on a Quest or a Vision Pro.

The request, word for word

This is the text that was sent to the agent to start the project. Nothing was edited for this page.

Turn it into basketball. Remove the can shelf. On the back wall of the booth, 3.2 metres from me, hang a hoop: a white backboard with the red square, an orange rim 2.3 metres high and a net that moves when the ball goes through. A rack with four basketballs stands on the counter within reach; a ball that has come to rest on the floor rolls back to the rack after two seconds, so I never run out. I grab a ball with the grip or trigger and throw it with a real arm swing (on the desktop: drag and release). The ball must behave like a basketball: it bounces off the backboard, rattles on the rim, and bounces on the floor with the right sound each time (made in code). A ball that passes down through the rim scores 2 points, 3 if it never touched the backboard or the rim; the net swishes, the rim flashes and "+2" or "+3" floats up from the hoop. A game is 45 seconds. The scoreboard above the backboard shows score, time left and my best score so far. A big Start button on the counter starts the clock; a buzzer sounds at zero, the final score stays up and the button says Play again. In the last ten seconds the clock turns red. Make it look like a real arcade basketball machine: basketballs with the pebbled orange skin and black seams (texture drawn in code), a metal rim, a chain-link side cage so balls stay in, warm spot lights on the hoop, soft shadows. It has to work in VR in the emulated headset with the controllers and on the desktop with the mouse.

How it went

Runs
One run: the request above, and it was done. A run ends only when the project builds and loads in a real browser without errors.
Started from
The XR Game template: A physics play space for VR games: grab, throw, hit and score, with a scoreboard, sounds and a can-knockdown game to start from.
Notes and credits
One request, no follow-ups; what is shown is what the first run built. AI: Codex CLI.

Build your own

Graspable is a desktop app. Describe the scene you want, and the agent builds it as a real project on your computer and checks that it runs. It is free with your own AI account.

Download GraspableYour first project

More examples

See all examples