Beam Reach: A Windsurfing Physics Display
- Lab 스킬
- v0.1.0
- Game creation
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.
예시
Beam Reach windsurfing sim
이 예시는 이 페이지에 접근할 수 없는 샌드박스 프레임에서 실행됩니다.
온라인에서 실행
SandBase sandbox에서 실행하고 결과를 Lab에서 확인하세요.
Lab에서 열기 ↗얻을 수 있는 것
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.
작동 방식
- 01
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.
- 02
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.
- 03
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.
더 많은 Skills
모든 Game creation Skills →
Seagull Swoop
Build a 3D flight-and-delivery game with light fries, heavy fish, crosswinds and optional ring routes. The gull must bring lunch home; cargo weight changes which openings it can safely reach.

Wedding Cake Wobble
Build a 3D fragile-cargo delivery game around a wobbling wedding cake. Brake before turns, avoid crossing guests and steer around tables. Lost tiers change the score, while a partial delivery can still succeed.

Hermit Tide
Build a 3D route-and-timing game where a hermit crab changes shells to cross a tidal shore. Narrow gaps favour the cap, stronger shells resist waves, and dry stones provide shelter and checkpoints.

Clover Circuit: Estate Cut
Drive a coral ride-on mower through a fenced estate garden. Steering, braking and the moving blade cut actual grass tufts; Overview reveals the genuine trail. Edit three gardens and three scene palettes offline. Coverage counts trimmed tuft centers rather than continuous ground area.

Glide Gates: Lagoon Run
Flap a golden bird through emerald pipe pairs above a turquoise lagoon. Actual fixed-step gravity, swept circle contacts and full-gate scoring power both manual flight and clearly labeled practice. Edit three courses and three scene palettes offline.

3D Interactive Garden Islands
Walk a curved garden, harvest fruit, share gifts, catch butterflies, fish, grow flowers and craft furniture. Four lighting states and one offline HTML with bilingual keyboard and touch controls.

