# Relic Crossing: A Hop-Across-the-Lanes Arcade Game

> Hop an explorer row by row across a relic causeway, in one offline HTML file: grass banks with fallen pillars, paved roads where ore carts and wagons roll through, and canals you cross only by riding drifting logs. A cart, the water or the current ends the run; the HUD counts distance and best, and a death card offers another hop. The lanes are seeded, the view is a fixed diagonal 3D camera, and every mesh and sound is generated in code.

- 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/hopper-cross

## What you get

Bring the theme, hero and vehicles, and optionally the lane mix, difficulty, hop feel and HUD text. The Skill returns a downloadable Skill (the arcade-game project, a customize guide, headless verification) and one playable example run.

## Install

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

```text
/hopper-cross make a hop-across-the-lanes game where <your hero> crosses <your world>
```

## How it works

1. **Create and customize the project** node scripts/new-project.mjs --out my-crossing copies the game, then npm ci installs the build tools. Read references/customize.md, which maps requests such as palette and theme, hero and vehicles, lanes and difficulty, death margins, hop and camera feel, HUD text and sound to their files. Most changes start in src/config.js; meshes are in src/world/actors.js and the seeded generator in src/logic/lanes.js.
2. **Build one file** npm run dev gives a live preview, and npm run build:single writes dist-single/index.html, one file of at most 8 MiB with three.js bundled. It must make no network requests and use no external fonts, images, scripts, storage or workers, and it needs WebGL 2. Anything you add is bundled and listed with its source and licence in CREDITS.json. The Skill calls no model.
3. **Verify every check** npm run shoot runs verify.json in a local Chrome and writes shots/report.json and screenshots; every check must pass, and the screenshots prove each change took effect. ?seed=<n> pins the world, so verify steps reproduce exactly. Tap, click or press Space or the up arrow to hop forward past ore carts, wagons and drifting canal logs.

## FAQ

### How do you play Relic Crossing?

In Relic Crossing, the hopper-cross game, an explorer hops across seeded rows in a diagonal 3D view: paved roads with ore carts and tarped wagons, canals where floating logs drift, and banks broken up by fallen pillars, shrubs and stones. Tap, click or press Space or up to hop forward, and use the arrows or a swipe to steer.

### Does Relic Crossing call a model or need a key?

No. Relic Crossing builds every lane, cart and log from procedural geometry inside one sandboxed HTML file, so playing it needs no API key, and your agent edits the project locally without calling a model. The UI is English only, and the game ships with a customize guide and verification.

### How do I make Relic Crossing harder?

In Relic Crossing raise the road lane weight, the traffic speed or count, shorten the canal logs or shrink the drowning edge margin, all in src/config.js. Then re-check that the traffic, canal and death steps in verify.json still pass on seeded runs before you share the build.

### Are the Relic Crossing lanes random?

No, they are seeded. In Relic Crossing ?seed=<n> reproduces the same world, which is how verify.json and the cover replay identical runs. Rows above the generated horizon are created as the player approaches, and movement is grid hops by design, with no walking between cells.

### Does Relic Crossing work on phones?

Yes. In Relic Crossing a tap hops, a swipe steers and a four-button pad appears on touch screens, and the layout fills a portrait screen. On windows under about 320 pixels wide the pad crowds the hint line, but the game still plays. The best distance is kept for the visit only, because the sandbox has no storage.

### Can I change the Relic Crossing hero?

Yes. In Relic Crossing buildPlayer() in src/world/actors.js is a group of boxes, including the hat, scarf and pack, which you can restyle. Keep the hero within the configured player width of two half-widths, or collisions feel unfair, and re-run the shoot checks after any change to the mesh.

## Examples

- Relic Crossing arcade game (scene)
- Relic Run (video)
