# Shard Field: A Vector Space Shooter With Splitting Shards

> Fly an inertial skiff through a field of drifting shards, in one small offline HTML file: shots crack large shards into medium and small ones, an amber drone crosses and fires back, every cleared field brings a bigger wave, and three skiffs end the run. Glowing outlines are drawn in 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/shard-field

## What you get

Bring a look and palette, the shapes of the skiff, shards and enemy, and optionally the numbers, rules and sounds. The Skill returns a downloadable Skill (the reference game project, a customize guide, headless verification) and one playable example run.

## Install

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

```text
/shard-field make a space shooter with <your look and palette>, <your ship and enemies> and <your rules>
```

## How it works

1. **Copy the finished shooter project** Shard Field gives your agent a complete vector space shooter: node scripts/new-project.mjs --out my-field, then npm ci. Simulation lives in src/game/ with no DOM, drawing in src/render.js, look and copy in src/theme.js, numbers in src/game/config.js, sound in src/audio.js and input in src/input.js. It runs locally and calls no model or paid service.
2. **Restyle and extend with the guide** references/customize.md maps requests such as make it neon pink, slower shards, a second enemy or a new title to the files and symbols to edit and how to confirm each change. Any added image, sound or font must be bundled, CC0 or your own work, and listed in assets/shard-field/CREDITS.json. In-game UI stays English unless the user asks otherwise.
3. **Build one file and shoot** npm run build:single writes dist-single/index.html, which must stay under 8 MiB with no network, storage, workers or WebAssembly. npm run shoot drives it in local Chrome through window.__scene.act: start, turn, thrust, fire, split shards, drone, wave, pause, game over, restart and the touch stick. Every check must pass in shots/report.json, and verify.json changes when assertions do.

## FAQ

### How do you play Shard Field?

Shard Field launches with Space, a click or a tap. The arrowhead skiff turns with the left and right arrows, thrusts with up and keeps drifting when released. Space fires short bolts, at most four in the air. Large shards crack into medium ones, then small ones, and an amber drone crosses and shoots back. Three skiffs are lost to FIELD LOST.

### Does Shard Field call a model or need a key?

No. Shard Field draws outlines in Canvas 2D and synthesises every sound with Web Audio, with no model or paid service anywhere. npm ci only fetches pinned packages from the public npm registry, and the built game makes no network calls.

### How big is a Shard Field build?

Shard Field builds to about 30 KB in one HTML file, against an 8 MiB limit. It ships no image, sound or font files, because everything is drawn and synthesised in code. The file opens from disk with a double-click, while the root index.html and dist/index.html run only through npm run dev.

### Can I add another enemy to Shard Field?

Yes. Shard Field's customize guide walks through adding a second enemy type beside the drone, covering its numbers, spawn, collisions, drawing, sound and a verification step. Other names, logos or assets from existing games or companies are not allowed.

### Does Shard Field save high scores?

No. Shard Field keeps the best score only for the session, because the sandbox it runs in has no storage. Multiplayer, server features and saved progress between visits are outside what this Skill supports.

### Does Shard Field work on phones?

Yes. Shard Field gives the left thumb a floating stick that steers and thrusts and the right thumb a fire zone, in portrait or landscape. It was verified under touch emulation, not on real devices, and there is no gamepad support.

### How precise are Shard Field collisions?

Shard Field uses circles around the shard and skiff outlines rather than the exact polygon edges. The simulation in src/game/world.js has no DOM, so createGame, stepGame and summary can be tested in Node.

## Examples

- Shard Field vector space shooter (scene)
- Vector Night (video)
