Game Universe Studio¶
Plan the assets of a small browser game as one JSON manifest, then check that manifest before any art is generated or any code is wired up. The manifest holds the viewport, the main character's turnaround sheet and palette, the sprite animations, the procedural sound cues and the showcase card. A mismatch found here costs a JSON edit; found after the sprites are drawn, it costs a redraw.
Camera moves and shot language are out of scope; use cinematic-shot-prompting for those.
Workflow¶
- Write the manifest. Start from
examples/indie-game-showcase-manifest.json. Field rules are inreferences/game-manifest-schema.md. - Lock the character. Fill
characterwith all four turnaround views, the sheet size and 3 to 6 palette colors, and write the image prompt fromreferences/character-ortho-spec.md(head-unit proportions, HEX palette, invariant features, no perspective change between views). - Define the sounds. Each
audio_cuesentry is one oscillator sweep. Build them with the recipes inreferences/web-audio-synth-primitives.md, resume theAudioContexton the first user gesture, and keep peak gain at or below 0.4. - Validate. Fix every BLOCKER; read each WARN and fix it or keep it on purpose:
Exit 0 means valid, 1 means BLOCKERs (or WARNs under
python3 scripts/game_manifest_validator.py --manifest game-manifest.json python3 scripts/game_manifest_validator.py --manifest game-manifest.json --strict --format json--strict), 2 means the file is missing or not a JSON object. Run--sampleto see a passing report. - Only then generate. Generate the turnaround sheet first, then sprites from it, so every frame inherits the locked palette and proportions.
What the validator checks¶
| Area | BLOCKER | WARN |
|---|---|---|
| Meta | missing title, unknown engine |
game_id not kebab-case |
| Viewport | width or height missing or not positive | aspect_ratio disagrees with width:height |
| Character | missing turnaround view, palette outside 3 to 6 colors, invalid HEX | |
| Sprites | frames, fps or tile_size not positive, no action |
no sprites defined |
| Audio | gain outside (0, 1], frequency outside 20 Hz to 20 kHz, duration not positive | unknown oscillator type, gain above 0.4 |
| Showcase card | contrast_ratio below 4.5 (WCAG 2.2 AA body text) |
invalid theme_accent HEX |
The validator checks numbers it is given. It does not measure contrast from colors or listen to audio; contrast_ratio is the value you measured.