# Development & publishing — Bramble: Cozy Harvest

## Repository layout

```text
.
├── README.md
├── docs/
│   ├── HOW_TO_PLAY.md
│   ├── CONTROLS.md
│   ├── INSTRUCTIONS.md
│   └── DEVELOPMENT.md
└── .gitignore
```

The playable build will add `index.html`, local `src/`, `tests/` and `package.json` using the same layout as the first milestone game (`game-10-pip-sparkle-journey`).

## Local validation

No build or tests yet. Acceptance will follow the same gates as the first milestone.

## Building for the local site

The hub site lives at `C:\GitHub\Unni-Games`. After a game has an `index.html`, run:

```powershell
powershell -ExecutionPolicy Bypass -File C:\GitHub\Unni-Games\tools\sync-site.ps1
```

It copies only games that actually have a playable entry point into `Unni-Games\games\`. Open `C:\GitHub\Unni-Games\index.html` directly to see the hub.

## Publishing flow

1. **Validate** — artifacts and engine selection are checked by the Game Factory.
2. **Build** — reuse the registered engine and modules; never rebuild them.
3. **Test** — logic, offline structure and a real browser input check.
4. **Judge** — Bloom score and hard gates decide promote / repair / archive.
5. **Approve** — a human chooses **PUBLISH**, **HOLD** or **ARCHIVE**. Public release never happens automatically.
6. **Publish** — staging first, then production. This repository is currently on the local-static path; GitHub Pages / Cloudflare are prepared but not connected.

## Content rules

- Original kawaii-chibi cartoon SVG/CSS art only; no external or baked-in asset text.
- No network calls after load; all assets and data local and versioned.
- Sprout titles carry the 18+ gate and the content restrictions in [Instructions](INSTRUCTIONS.md).
