fal-gamedev
2D Game Assets
Requires the
vgCLI (npm install -g vibedgames, orpnpm dogfoodin this repo). The vibedgames server holds the FAL key; no per-machine setup.
Full pipeline for 2D pixel art game assets: character → sprite sheets → background removal → game background. Each recipe is independently invokable, run just the part you need.
Always use --json so output is machine-readable. Use --download to save files locally. Do not curl URLs manually, use the --download flag.
Execution rules, follow these strictly
-
Each fal call = one Bash tool call: issue each
vg media runandvg media statusas its own bare tool call. No variable assignments, no pipes, no shell redirects. This keeps every call matching thevg media *allowlist so it runs without permission prompts. -
Parallel jobs → async: issue each
vg media run --asyncas its own separate Bash tool call (not combined into one shell block). All jobs queue and run in parallel on fal's side; total time ≈ slowest single job. After all are fired, poll each withvg media statussequentially (not in parallel, one failure must not cancel others).
# Step 1, fire async (each line = its own Bash tool call, returns request_id immediately)
vg media run fal-ai/nano-banana-pro/edit --prompt "$WALK_PROMPT" --image_urls "[\"$CHARACTER_URL\"]" --aspect_ratio "1:1" --resolution "1K" --async --json
vg media run fal-ai/nano-banana-pro/edit --prompt "$IDLE_PROMPT" --image_urls "[\"$CHARACTER_URL\"]" --aspect_ratio "1:1" --resolution "1K" --async --json