# World Game template

> A game inside a generated place: throw balls that bounce off the real room, knock mugs off the bar, ring the targets, keep score.

Source: https://graspable.dev/templates/world-game

Plan: Builder and higher. See https://graspable.dev/pricing.md.

## What you start with

A physics game inside a generated world: Spark + Rapier, 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

- Add a 45-second timer and three rounds: 8 mugs, then 10 mugs closer together, then mugs that slide along the bar. Show round and time on the scoreboard.
- Put a wooden bucket on the bar; a ball that lands in it is worth 5 points and makes the bell ring.
- Turn it into a horseshoe toss: replace the balls with horseshoes and the mugs with three iron stakes on the floor, score when a horseshoe ends up touching a stake.
- Move the game to a pirate ship deck: generate the world, then set up bottles on a barrel and cannonballs to throw.
- Make the targets swing from side to side and add a golden mug that is worth 10 points.

## How a run ends

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

## Examples

- [Tavern tankards, three rounds](https://graspable.dev/a/5d5botjh): Throw balls at pewter tankards on the bar of a generated tavern: three rounds against the clock, swinging targets, a bucket worth five.
- [Cannonballs on a pirate deck](https://graspable.dev/a/1ocwf0q9): On the deck of a generated pirate ship, throw cannonballs at green bottles on the barrels: ten points each, three rounds, a bell at the end.

## Start a project

Get Graspable at https://graspable.dev/download. Choose World Game when creating a project. For an existing agent, see https://graspable.dev/docs/use-with-ai-agents.md.
