XR Game template

GraspableOfficial

A neon arcade alley with a stack of cans on a table, a board that reads "Knock them down" with a score, and balls in front of two controllers
A new project from this template, untouched: what you see when it first opens, in Graspable's emulated headset.

What you start with

React Three Fiber + @react-three/xr + Rapier physics, in a Vite project. It is ordinary code in a folder on your computer: read it, edit it, keep it.

Where it runs

Any WebXR browser, such as Meta Quest and Apple Vision Pro, and a flat screen with mouse or touch. The app has an emulated headset to try it before you put one on.

Requests to try

Start a project from this template and send one of these as it is, or change it to what you have in mind.

  • Turn it into basketball: a hoop with a backboard on the back wall, 2 points per basket, 45 seconds on the clock.
  • Make it a bowling lane: ten pins at the end of a 4 metre lane, one heavy ball, a bonus for a strike.
  • Add three targets that slide left and right above the shelf; hitting one is worth 25 points and makes it flash.
  • Whack-a-mole: moles pop up from the counter, give me a hammer to grab, and make them faster every round.
  • Three levels: 6 cans, then 10 cans, then cans on a shelf that moves side to side. Show the level on the scoreboard.

How a run ends

The agent edits the project on your computer, and a run ends only when it builds and loads in a real browser. How templates work

Made from this template

  • 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 rightXR Game template

    Arcade basketball

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

    • Controllers
    • Physics
    • Game
    • Sound

    See its page (one run)

More templates

  • React XR

    A small working scene for VR and AR: things to pick up and throw, buttons, readable text, physics and sound. The starting point for anything.

    GraspableOfficial

  • Splat World

    Stand inside a photorealistic generated place at real scale, look around, teleport, and add your own things to it.

    GraspableOfficial

  • World Explorer

    Walk through a generated place as if it were solid: floors hold you, walls and furniture stop you, with info points and a guided tour.

    GraspableOfficial

See all templates