# Planet Putt: Nine Holes of Gravity Mini-Golf

> Putt a ball across small planets whose gravity bends every shot, in one small offline HTML file: nine holes with two to ten planets, par 35, hold-aim-release with a curved preview of the flight, restart hole and a scorecard. All drawing is Canvas 2D and every sound is synthesised.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Game creation](https://www.sandbase.ai/skills/games)
- Version: 0.1.2
- Runs online: yes
- Page: https://www.sandbase.ai/skills/games/planet-putt

## What you get

Bring the planets and the sky, the holes, and optionally the gravity, power and controls. The Skill returns a downloadable Skill (the reference game project, a customize guide, a route finder, headless verification) and one playable example course.

## Install

Download the Skill package from https://www.sandbase.ai/skills/games/planet-putt (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/planet-putt make a gravity mini-golf game with <your planets and sky>, <your holes> and <your physics>
```

## How it works

1. **Describe planets and holes** Planet Putt takes a prompt such as 'Use planet-putt to make a gravity mini-golf game with ice moons under a green aurora, seven holes and stronger gravity.' node scripts/new-project.mjs --out <dir> copies the game, which needs Node 22.4 or later. The example course, nine-worlds, has nine holes with 2 to 10 planets each, six planet kinds and a total par of 35.
2. **Edit holes and physics** Your coding agent follows references/customize.md. Game logic lives in src/game/ and numbers in src/config.js, including PHYSICS, SHOT and CUP. Every planet's gravity bends the flight, and the ball bounces, rolls and settles where it lands. Each hole stores a route the tests replay, and a route finder re-finds one after a change. Par comes from a simulated player.
3. **Build and play the round** npm ci && npm run build:single writes one dist-single/index.html under 8 MiB with no fetch, storage or external URLs; the published build is about 34 KB. npm run shoot needs Chrome and writes shots/report.json. Release 0.1.2 passed 11 interactions: tee off, aim, a real drag putt, landing, restart, a sunk hole, the next hole, the scorecard, hole 9, the finish and a phone putt.

## FAQ

### How do I putt in Planet Putt?

Planet Putt has you press, pull the pointer away from the ball and release. The ball flies toward the pointer with power from the pull distance, and a dotted preview draws the curved flight using the same simulation. Sink it in the flagged cup in as few strokes as possible; restart-hole puts it back on the tee.

### Is Planet Putt real orbital physics?

No. Planet Putt gravity is a game rule tuned for feel: each planet pulls with a fixed strength at its surface that falls off with distance. A flight that would orbit forever is capped and counts as lost.

### Why does a Planet Putt hole fail after I change gravity?

Planet Putt stores each hole's route with the old PHYSICS, SHOT and CUP values, so a change can make it miss and the hole and finish steps then time out. Find a new route with the route finder the guide describes.

### Can I add a tenth hole to Planet Putt?

Yes. Planet Putt adds a hole by copying a HOLES entry, giving it a route and updating the step values the guide lists. The guide's Controls entry also lists three places to flip for a slingshot pull-back.

### Does Planet Putt need a key or any media files?

No. Planet Putt draws everything on Canvas 2D and synthesises its sound in Web Audio, with no images, fonts or sound files and no network calls, so a round needs no SandBase account. SwiftShader is fine for it on machines without a GPU.

### Does Planet Putt work on a phone?

Yes. Planet Putt accepts a touch drag and release as a putt, and on portrait phones the course turns a quarter so the planets stay large. A 390 by 844 phone putt passed the checks. The game text is English only.

## Examples

- Planet Putt gravity mini-golf game (scene)
- Nine Worlds (video)
