# Vibe-code a browser game

> Prototype a small 2D game and share it with a link.

- Category: Vibe coding · Difficulty: Beginner
- Estimated monthly cost: $0–$20/mo. Claude Pro $20 (or the $0 starter stack). Cloudflare Pages hosting is free.
- Model: Claude Sonnet 5.5
- MCP servers: Playwright MCP (to playtest)
- Last checked: 2026-10-21 · Hands-on tested: no (built from official docs)
- Canonical: https://getagentloadout.com/loadouts/browser-game/ · JSON: https://getagentloadout.com/data/loadouts/browser-game.json

## Tools
- [Claude Code](https://claude.com/product/claude-code): Anthropic's agentic coding tool for the terminal and IDEs. Included in paid Claude plans. Pricing: Pro $20/mo ($17/mo billed yearly; 5-hour and weekly usage limits); Max 5x $100/mo (5x Pro usage per session); Max 20x $200/mo (20x Pro usage per session). Source: https://claude.com/pricing
- [Phaser](https://phaser.io): HTML5 game framework for 2D browser games. Pricing: Open source $0/mo. Source: https://phaser.io
- [Cloudflare Pages](https://pages.cloudflare.com): Static and full-stack hosting on Cloudflare's network. Pricing: Free $0/mo (Unlimited sites and bandwidth, 500 builds/month). Source: https://developers.cloudflare.com/pages/platform/limits/

## Starter prompt

```
Build the game in GAME.md with Phaser and Vite. Start with movement and one enemy, then stop so I can playtest. Keep tuning values (speed, health, spawn rate) in one config file.
```

## Config (GAME.md)

```markdown
Genre: top-down arena
Core loop: dodge, collect, upgrade
Controls: WASD + mouse
One-sentence fantasy: <...>
Scope: 1 level, 3 enemy types, a score screen
```

## Setup steps
1. Write GAME.md.
2. Build the core loop first.
3. Playtest, tweak the config, repeat.
4. Deploy to Cloudflare Pages and share the link.

## Why this works
Small scope plus a single tuning file makes iteration fast.

## Watch out
Use assets you have rights to.

## Unverified
- Phaser details not re-checked this cycle.

## Related loadouts
- [Agent-ready website: let AI agents read, compare and sign up on your site](https://getagentloadout.com/loadouts/agent-ready-website/)
- [Landing page in an hour](https://getagentloadout.com/loadouts/landing-page-hour/)
- [Point-and-fix UI: click the broken thing, approve the agent's diff](https://getagentloadout.com/loadouts/point-and-fix-ui/)

Some links may be affiliate links; it never affects rankings. Rankings are never for sale.
