/vibedgames:game-playbookfrom vibedgames
Guides building a browser game from a one-line idea through scaffold, art generation, and craft checklist. Covers 2D (Phaser) and 3D (Three.js) pipelines with asset ordering and polish.
Ships in vibedgames. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The platform promise is "studio-grade games from a prompt." The gap between a tech demo and that is two things: the right build order and craft. This skill is the playbook. The engine/asset/deploy skills own the pieces; this owns how they fit together and how to make the result fun.
Do these in order — don't write the game loop before you have art, and don't ship before the craft pass.
Setup. Run vg-setup first: find vg (or use npx -y vibedgames@latest).
Generated art and deploy need a vibedgames account (images through the
user's own Codex plan don't; see generate), so if the user wants either,
get them signed in now; the sign-in is the one step that waits on a
human. If they'd rather skip it, build with hand-made or placeholder art and
run it locally; signing in can come later.
Scaffold. vg new <slug> --engine phaser for 2D, --engine threejs for
3D. (See the phaser / threejs skills.) The template is a skeleton, not a
game — you will replace its placeholder scene and logo.
Looks matter? (user names a game it should look like, or wants a
polished/studio pass) — lock 4–8 real reference screenshots and a per-game
visual bar before any art: references/visual-bar.md. A locked bar
replaces step 2's order with that file's light-first order (light and grade
over placeholders → surfaces → density → HUD → motion).
Generate the art FIRST. The route depends on the engine you scaffolded:
2D (--engine phaser) — see pixel-art. Order matters:
walk-down/up/side, left =
mirror) → background-remove (Bria) → normalize to exact power-of-two frames.BlendModes.ADD so black is free transparency,
no alpha pass needed. A generated video, sliced into a frame strip, makes
great fire/explosion (see pixel-art Recipe 5).3D (--engine threejs) — meshes and props, not sprite sheets:
model-catalog
(text-to-3d / image-to-3d); rigged animated characters → regenerate-3d.image-to-threejs: a procedural factory with a pivot/socket
rig, built from one generated reference image.threejs skill's
references/generated-assets.md.Core loop with the proven shell (see phaser): full-screen
Scale.RESIZE, a zoom-aware follow camera (clamp the centre yourself —
Phaser's setBounds reveals void), directional applyAnim(dir, moving),
Arcade physics for movement + overlap hit detection, load.spritesheet
with the EXACT frame dims you normalized to.
Craft pass — the checklist below. This is what makes it great.
Verify it's actually fun. Run it (see playtest / run), play it —
move, attack, take a hit, die, restart. A game that only "looks done" in a
static screenshot usually feels dead in motion. Tune speeds/cooldowns/spawn
rates until the core loop is satisfying in the first 10 seconds.
With a visual bar locked, run the critic loop before shipping: capture,
a fresh critic subagent scores against the refs, fix the punch list, repeat
until every criterion passes — references/critic-loop.md.
Ship. vg deploy ./dist (see deploy); add multiplayer / add touch controls / make it forkable are one prompt each (see multiplayer,
gamepad, fork). Link-shared games get opened on phones — if the game is
mouse/keyboard-only, add on-screen touch controls so it's playable there.
Apply most of these to every interactive moment (hit, kill, pickup, jump, land, damage). Each is a few lines; together they're the whole difference.
this.cameras.main.shake(80, 0.005) (bigger for
player damage, smaller for a hit landed).this.physics.world.pause(); this.time.delayedCall(45, () => this.physics.world.resume());body.setVelocity(cos*K, sin*K)), and ignore AI steering for ~150ms so the
knockback reads.const e = this.add.particles(x, y, "spark", {
speed: { min: 50, max: 220 },
lifespan: { min: 240, max: 520 },
scale: { start: 1, end: 0 },
alpha: { start: 1, end: 0 },
tint,
blendMode: Phaser.BlendModes.ADD,
emitting: false,
});
e.explode(14);
this.time.delayedCall(650, () => e.destroy());
(Generate a soft white dot texture procedurally in the preloader.)sprite.setTint(0xffffff).setTintMode(Phaser.TintModes.FILL) for
~80ms (Phaser 4 — setTintFill is gone).Back.Out scale
tween from ~0.4; a brief non-uniform scale on attack/land sells weight.scale↑ + alpha→0 tween in the facing direction.this.cameras.main.flash(120, 120, 20, 30).Sine/Quad/Back/Cubic, never linear pops.vg generate (audio
models) — a hit thwack, a death pop, a loop — and play on the same events.pixel-art, asset-pipeline).references/critic-loop.md).This playbook is the index; when a step needs real depth, load the module:
ask-me — the idea is fuzzy; interview the user into a build-ready spec.game-feel — tuning numbers for input forgiveness, movement, hit stop,
trauma shake, audio feel. The craft checklist above is the summary; that's
the reference.animation — sprite animation craft: frame budgets, attack timing, cancel
windows, smears, silhouette readability.vfx — particle recipes (explosions, sparks, trails, weather), color
rules, mobile performance budgets.level-design — level/wave/arena structure: kishōtenketsu beats, weenies,
experiential density, wave grammar, difficulty sawtooth.onboarding — the first 30 seconds, teaching without tutorials, difficulty
curves, failure/retry loops, assist modes.game-balance — loops, economies, cost curves, loot tables, prestige math,
dominant-strategy audits.design-lenses — structured critique when the game exists but isn't fun;
severity-ranked findings mapped to the modules above.finish-it — the project is sprawling or stalled; cut to a shippable core
and ship it.References in this skill:
references/visual-bar.md — lock reference shots, decompose the look, write
the per-game bar, art order (light first), asset ledger, escalation ladder.references/critic-loop.md — capture spec, the fresh-critic prompt and
verdict format, punch items, stuck-loop diagnosis, the final eye check.A great first game = generated art (not placeholders) + a tight full-screen follow camera + a core loop where every hit shakes, flashes, knocks back, and sprays particles. Build the art, build the loop, then spend real time on the craft pass — it's 10% of the code and 90% of the difference.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kyh/vibedgames --plugin vibedgames35 skills in this plugin
/animated-spritesheetsGenerate a character's animation frames (idle, run, attack, death…) as one labeled pose board, then slice, key and pack them into an engine-ready spritesheet./animationMake 2D sprite animation read well: frame budgets per clip, timing and spacing, cancel windows, smears, secondary motion, wiring clips in Phaser. Generating frames is pixel-art / animated-spritesheets./asepriteParse Aseprite files (.ase/.aseprite) — layers, cels, tags, slices, palettes, tilesets — into JSON, durations and bounds for engines and tools.Other plugins' skills for the same job