# Beam Reach: A Windsurfing Physics Display

> Sail a windsurfer on the points of sail, in one small offline HTML file: sheet in and out, rake the mast to steer, shift stance, hike out, drop the daggerboard and hook into the harness. Apparent wind, planing and foiling are real states, a balance meter keeps you upright, and three guided demos sail themselves. Procedural waves, rider rig, spray and synthesized audio.

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

## What you get

Bring the water and the wind model, the rig and the handling, and optionally the points-of-sail set, the HUD, the demos and the UI text. The Skill returns a downloadable Skill (the windsurfing sim project, a customize guide, headless verification) and one playable example session.

## Install

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

```text
/beam-reach make a windsurfing physics sim where the player sails <your waters> on <your points of sail>, with <your wind model> and <your HUD>
```

## How it works

1. **Copy the windsurfing sim** Beam Reach starts with node scripts/new-project.mjs --out my-sail on Node 22.4 or later. Your coding agent reads references/customize.md, which maps wind strength and gusts, sail sizes, rig and body inputs, demo tours, units, languages and panel layout to files and symbols. A prompt names your waters, your points of sail, your wind model and your HUD.
2. **Tune wind, sail and demo tours** Physics tunables sit at the top of src/sim.js, including THRUST_N, K_WALL, the TACK and GYBE angles and SAIL_DEFAULT. UI strings live in STRINGS in src/i18n.js and demo tours in SCRIPTS in src/demo.js. Sail sizes for the settings buttons come from SAIL_SIZES in src/ui.js. Waves, rider rig, spray and sound are procedural, so no media files are added.
3. **Build the file and sail the checks** npm ci fetches three.js, Vite and playwright-core, then npm run build:single writes dist-single/index.html, about 0.7 MiB with everything inlined. npm run shoot plays it headlessly and writes shots/report.json with screenshots: start, trim inputs, tacking, settings, demos, pause and reset. Every verify.json step must reach its asserted state. Check the screenshots of anything you changed.

## FAQ

### What can you do in Beam Reach?

Beam Reach lets you windsurf over open water with real controls. W and S sheet the sail in and out, the arrow keys rake the mast to steer, 1, 2 and 3 shift stance, Q and E hike to windward, D drops the daggerboard and H hooks into the harness. Overdo it and you crash, get a coaching note and recover.

### Does Beam Reach model real sailing physics?

Partly. Beam Reach computes apparent wind, points of sail, sail power against required power, planing and foiling states and a balance meter. The forces are tuned for play, not computational fluid dynamics, so it is not simulation grade. Planing and foiling are states the hull enters, which changes how the board rides.

### Is there a race or a win condition in Beam Reach?

No. Beam Reach has no course, buoys, opponents or score. The loop is trimming and steering against wind and balance. Its verify.json proves start, trim, tacking, settings, demos, pause and reset deterministically, but it never sails a timed course.

### How do the Beam Reach demo modes work?

Beam Reach has three guided demos, beginner, freeride and chill. DemoDirector in src/demo.js steers, trims and tacks the board itself and shows captions. If you touch the controls, your input overrides the tour for three seconds and then it resumes. Edit SCRIPTS in the same file to change the tours.

### Does Beam Reach need an API key or a GPU?

Beam Reach needs no API key and calls no model, so sailing it has no usage charge. It does need WebGL, which any modern browser has. SwiftShader can run it on a machine without a GPU, only more slowly. The built file makes no network requests.

### Why does Beam Reach forget my settings?

Beam Reach stores units, sail size, camera and caption preferences in an in-memory memoryStore instead of localStorage, because the sandbox allows no storage. Refreshing restores the defaults. Units can be km/h, knots or m/s, and sail sizes range from 4.0 to 9.5 square metres.

## Examples

- Beam Reach windsurfing sim (scene)
- First Reach (video)
