# Jungle Trek: A First-Person Rainforest Walk

> Walk a narrowing rainforest trail to a plunge-pool waterfall, in one offline HTML file: a first-person level generated procedurally at load, six carved waystones to collect along the path, stone ruins and a gate to pass, jog and jump over rougher ground, and a finish card with the walk time. Terrain, nine plant species, water, sky and ambience are all drawn in code — no imported assets.

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

## What you get

Bring the trail and its biome, and optionally the look, markers, pacing and controls. The Skill returns a downloadable Skill (the walkable-level project, a customize guide, headless verification) and one playable example walk.

## Install

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

```text
/jungle-trek make a first-person nature walk with <your biome> and <your goal>
```

## How it works

1. **Set the biome and goal** Jungle Trek takes a prompt such as 'Use jungle-trek to make a first-person nature walk through a pine forest to a lookout tower.' Slots set the trail and biome, with optional look, markers, pacing and controls. node scripts/new-project.mjs --out <dir> copies the project out of assets/jungle-trek so your agent edits a copy rather than the Skill's source.
2. **Shape trail, plants and water** The level is generated in three.js at page load from an authored trail of fifteen knots, with terrain, nine code-drawn plant species, stone ruins, a gate, water, sky and synthesised ambience. src/config.js holds CFG for speeds, eye height, fog, light, pool, markers and finishT. Six waystones sit at normalised trail positions in markers[], and references/customize.md lists the traps.
3. **Build and walk it headlessly** npm ci && npm run build:single writes one dist-single/index.html under 8 MiB with no fetch, storage or workers. npm run shoot replays verify.json and harness checks for size, fps, audio, CSP, WebGL, mobile layout and screenshot detail, then writes shots/report.json. Version 0.1.1 passed ten interactions, including a marker find, the falls, the finish card and a phone walk.

## FAQ

### What is Jungle Trek?

Jungle Trek is a single-player first-person walk along a narrowing rainforest trail, from a shaded trailhead past ruins to a waterfall and plunge pool. Six carved waystones mark progress, and reaching the pool rim shows a card with your walk time and how many markers you found.

### Does Jungle Trek ship any models, textures or sounds?

No. Jungle Trek builds terrain, vegetation, ruins, water and sky in code and draws its textures on canvas, so the package contains no models, textures, audio or fonts. Any asset you add later must be bundled inline and listed with its licence in CREDITS.json, and only generated or CC0 files are allowed.

### Can Jungle Trek generate a different map each load?

No. Jungle Trek generates one authored walk from its fifteen-knot trail, not arbitrary terrain. Reshaping the world means editing trail.js and config.js. The player stays on the ground inside the corridor, with no swimming, climbing or free flight.

### Is Jungle Trek free to run?

Yes. Jungle Trek runs entirely in the browser, synthesises its ambience after the first click and makes no network requests, so walking the trail calls no model and incurs no SandBase charge. Building needs Node and npm, and the headless check needs Chrome.

### Why does Jungle Trek show an error instead of the scene?

Jungle Trek requires WebGL 2, and a browser without it posts a jungle-trek:error message with the reason webgl rather than a black frame. Pointer lock is desktop-only and denied inside an iframe, so look falls back to touch drag. Audio cannot play before the first click or tap.

### Does Jungle Trek work on mobile?

Yes. Jungle Trek gives touch screens a virtual stick to walk and drag-to-look elsewhere on the screen. The mobile verify step checks the layout at 390 pixels wide under emulation, not on real devices. The in-game text is English.

## Examples

- Jungle Trek rainforest trail (scene)
- River Falls (video)
