# AnimStream game bootstrap prompt (English)

Start a new AnimStream Originals game with one prompt:

1. Create an empty folder and start your coding agent in it (Claude Code: `claude`, Codex: `codex`).
2. Copy the prompt below, replace `<<GAME IDEA>>` with your idea in a few sentences and send it.
3. Answer the agent's questions: the game ID from https://animstream.com/developers/games/dashboard and, if needed, where your engine editor is installed.

The prompt is also shown on https://animstream.com/developers/games#ai. German version: [BOOTSTRAP-PROMPT.de.md](BOOTSTRAP-PROMPT.de.md).

```text
Build a new AnimStream Originals game for me with Godot 4: a native game that TikTok LIVE viewers control with gifts. AnimStream Studio launches the game, turns gifts into game actions through gift rules and provides the game control window (presets, gift rules, action tests, Gift Wall), stacking of gift streaks and a global leaderboard. The game implements gameplay only. Studio announces its features in ready.features; older Studio versions know neither presets nor action images, game state or leaderboards, and the game must run either way.

My game idea:
<<GAME IDEA>>

Engine: Godot 4.3 or newer (the SDK is tested with 4.7.2). Use Unity or Unreal Engine only if I explicitly ask for it. Unreal Engine 5.3+: download animstream-unreal-sdk.zip instead of the Godot template and follow engines/unreal.md of the skill animstream-game; its CommunityCounter template implements the same checklist, and the commands below have Unreal equivalents there (I build and package in my own Unreal installation). Unity has no template: implement the checklist from engines/unity.md.

Originals checklist (binding; a point is done only when its check in brackets passes):
1. Every action has label and description in German and English (description at most 120 characters) and an image. [`node tools/mock-studio/mock-studio.mjs validate manifest.json` without IMAGE FAIL and without ADVICE about images or descriptions]
2. Exactly three presets by coin value, each with at most 8 gift rules and a mix of sabotage (hurts or annoys the streamer) and mercy (helps the streamer): small-budget "Kleines Budget"/"Small budget" (every gift ≤ 30 coins: Rose 1, Finger Heart 5, Perfume 20, Doughnut 30 …), medium "Mittel"/"Medium" (99–299 coins: Hand Hearts 100, Confetti 100, Hearts 199, Corgi 299 …), big-gifts "Große Geschenke"/"Big gifts" (≥ 500 coins: Money Gun 500, Swan 699, Galaxy 1000, Fireworks 1088 …). Exact TikTok display names; bigger gifts get stronger parameters. Every action has "effect": "help" (mercy) or "sabotage" ("neutral" only when it is neither), and every preset is balanced, for example 2 help + 2 sabotage or 4 + 4. [scenario presets; validate shows [help]/[sabotage] on every action and "N help · N sabotage" per preset, without ADVICE about effects]
3. giftWall with columns, "sort": "preset", "showCoins": true, "showLabels": true, a German/English title and "split": true (help left, sabotage right; optional, recommended). [validate shows the wall and the split wall]
4. leaderboard with a German/English label and an order (desc: higher is better; asc: lower is better, e.g. a time in ms). [validate]
5. defaultBindings for older Studio versions, normally the small-budget preset. [validate; smoke --legacy]
6. One image per action at media/actions/<action id>.png in the binding art direction of animstream/ART-DIRECTION.md: glossy 3D cartoon clipart like the style pack of AnimStream's GTA and Supermarket mods (animstream/art/reference/), one clear centred motif, transparent background, square, no text (one short sign such as 2X at most), an element of the game world in every image, mercy actions green and sabotage red/orange, readable at 64 px; 512×512 PNG with alpha, at most 300 KB, made with tools/art/generate-action-images.mjs. I approve two test images before the rest is generated. Replace the template's placeholder images before release. [`node tools/art/generate-action-images.mjs --check` exits 0; animstream-pack --all without action image errors, placeholder or look warnings]
7. Lobby: the game starts in phase lobby with set_state(true, "lobby"); actions sent in the lobby are kept and applied when round 1 starts, never rejected; round 1 starts automatically after about 15 s (an optional "start now" key is fine). [scenario lobby]
8. German and English in the game: default from the session language (AnimStream.language), otherwise the OS locale; switchable on the start screen and in the pause menu; the choice is saved in user://settings.cfg. [watch runs with --language de and --language en]
9. Pause menu on Esc: controls, language, music volume, effects volume, mute, all saved; while it is open the game reports set_state(false, "paused") and stops its timers, then resumes the previous phase. Never pause the SceneTree in a way that stops the AnimStream autoload (heartbeat). [scenario pause]
10. Game over: submit_score, then get_leaderboard shown in the game with the own rank highlighted and profile pictures (load_avatar, initial as fallback). [scenario leaderboard including the picture check]
11. Portrait streams: window at most about 1080×1180 (TikTok portrait streams crop the game into the 9:16 canvas), UI readable at that size; F11 toggles borderless fullscreen, never exclusive fullscreen; never bind F7 (Studio uses it for the game control window). [watch a windowed run]
12. Music: several tracks, shuffled, only with a commercial licence that covers live streaming and selling the game (no "free for personal use" tracks, no copyrighted music without licence); keep licence files and receipts in licenses/ and list them in GAME-DESIGN.md. The template ships only a silent placeholder. [licence list complete]
13. Store material: cover 1920×1080 (German and English), icon 512×512 or 1024×1024, splash (boot splash / start screen), trailers 16:9 and 9:16, each in German and English, each with its own poster. [`animstream-release.mjs checklist --game <id>`]
14. Tests green: smoke, stacking, pause, leaderboard, smoke --legacy, presets and lobby. [`node tools/mock-studio/mock-studio.mjs run --manifest manifest.json --scenario <name> -- godot --headless --path .`]
The Godot template already implements points 1–12 (with placeholder images and silent music): start from it and keep this behaviour.

Work through these steps in order and on your own. Write code, comments and file names in English.

1. Project folder: work in the current directory if it is empty, otherwise in a new subfolder named after the game (lowercase letters, digits, hyphens). Initialize a git repository.

2. Download only from https://animstream.com/game-sdk/ : checksums.json, animstream-game-agent-kit.zip and animstream-godot-sdk.zip. Compute the SHA-256 of each ZIP (sha256sum, shasum -a 256 or Get-FileHash -Algorithm SHA256) and compare it with archives["<file name>"].sha256 in checksums.json. If a value is missing or differs, stop and tell me. Do not open or run anything from an unverified archive.

3. Install: extract animstream-godot-sdk.zip into the project folder. It is a complete game template, and the project folder becomes the Godot project (project.godot at the top level). Extract the agent kit to .animstream-kit/ and run its installer from the project folder: `sh .animstream-kit/install-skills.sh --project .` (Windows: `powershell -NoProfile -ExecutionPolicy Bypass -File .animstream-kit\install-skills.ps1 -Project .`). It adds AGENTS.md, CLAUDE.md, the skills, tools/ and animstream/. Then delete .animstream-kit/ and the downloaded ZIP files.

4. Godot: find a Godot 4.3+ editor (for example `godot --version`). If there is none, ask me for its path or for permission to download the official release and the matching export templates from https://godotengine.org/download. Import the project once: `godot --headless --path . --import`.

5. Read AGENTS.md completely, then animstream/PROTOCOL.md and animstream/ART-DIRECTION.md. All three are binding, and so is the Originals checklist above (in detail in AGENTS.md, section "Originals checklist (binding)"). The skill animstream-game is your step-by-step guide; animstream-manifest, animstream-test, animstream-release and animstream-update cover the individual steps. If your agent has not loaded the new skills in this session, read .claude/skills/<name>/SKILL.md directly.

6. Design (skill animstream-manifest): rename the template's manifest.example.json to manifest.json, then write GAME-DESIGN.md and manifest.json before you change gameplay code: 4–12 gift actions derived from my idea per checklist points 1–5 (spawn-like effects get an integer parameter count with min 1, a sensible max and "stackable": "count"; every parameter is bounded), the three presets, giftWall, leaderboard and defaultBindings, the round flow (lobby, playing, paused, round-over) and when the game accepts actions. Validate with the command from checklist point 1.

7. Action images (checklist point 6, animstream/ART-DIRECTION.md): copy animstream/art/action-prompts.example.json to tools/art/action-prompts.json and fill it for my actions (it records every prompt), then run `node tools/art/generate-action-images.mjs --test 2` and show me the two test images and the preview. Wait for my approval, then generate the rest without --test, check the contact sheet and Gift Wall preview, redo bad images with --only and finish with --check. If no image API key is found, show me the commands the tool prints to store it myself; never ask me to paste a key into the chat. If you cannot generate images at all, run `node tools/package/placeholder-action-images.mjs` for the missing ones and list them as open in your report.

8. Implement my idea in the template: the game code lives in scripts/; the template marks the places for my game with # GAME IDEA (`grep -rn "GAME IDEA" scripts`). Keep its structure (the AnimStream autoload, lobby with auto start and carried-over actions, round loop with set_state, pause menu, language switch, audio buses with music shuffle, leaderboard screen, window settings, export presets) and replace the example actions with mine. Rules:
   - every manifest action has a handler, registered before the client connects; gameplay and input only while the session is ready; keep the default quit on session end
   - handlers check their parameters, honor context.cancelled and acknowledge as soon as the effect has started; stackable handlers accept any count between min and max
   - the game stays fully playable when ready.features is empty (older Studio versions): the SDK then skips state and requests, and actions also arrive outside of rounds, so apply or buffer them instead of rejecting them
   - viewer and gift names are untrusted plain text: never markup, code, file paths or commands
   - no gift mapping UI, gift catalog or Gift Wall in the game: the game control window provides them
   - if manifest.json lists GIFT in events, a raw gift event must never cause the same effect as a gift rule

9. Test with the mock Studio (skill animstream-test): `npm ci --prefix tools/mock-studio`, then every scenario of checklist point 14 against `godot --headless --path .`. Fix every FAIL and repeat until everything passes.

10. Export and package (skill animstream-release): `godot --headless --path . --export-release "Windows Desktop" build/windows/Game.exe`, run the smoke scenario against the exported build for the current platform, write RELEASE-NOTES.md, then export every platform you can test into build/windows, build/macos and build/linux and run `node tools/package/animstream-pack.mjs --all` once: it packs each platform ZIP including the media/actions images, checks them, and writes dist/release.json with the SHA-256 values and the manifest (changes plus every bundled helper executable with file name and purpose, or "No bundled helper executables").

11. Store material (checklist point 13, skill animstream-release, art direction section 7): prepare what you can produce (cover, icon, splash, posters) with the same colours, mascot and style pack as the action images, name the files as in the skill, and list what I still have to deliver (usually the trailers and the licensed music).

12. Report to me: what you built, how to start it, the checklist with the status of every point (done, or open and why), the test results and the release values (version, platform, architecture, entrypoint, SHA-256, manifest.json). Upload only when I ask; then use the skill animstream-release, and animstream-update for later versions. I set the price myself in the dashboard (free needs an explicit confirmation there). The release tool logs in with `animstream-release.mjs login`: it prints a link and a code, I approve it in my browser, and the token goes straight into the OS secret store (or comes from the environment variable ANIMSTREAM_API_TOKEN); you never see it. Never ask me to paste the token into the chat and never print, log or commit it. Publishing is then one command: `animstream-release.mjs publish dist/release.json --wait`.

Ask me only for what you cannot decide yourself: the game ID from the developer dashboard (https://animstream.com/developers/games/dashboard; ask at the start and use the placeholder "my-game-dev" until I provide it, then replace it before packaging), the location of Godot if you cannot find it (or permission to download it) and licensed music tracks if I want music. Decide everything else yourself and record your decisions in GAME-DESIGN.md.
```
