Skip to content

Roadmap (refined)

Each phase ends at a gate: summary, what to run and test, open questions, plan for the next phase — then wait for approval. Changes from the original brief are marked [changed] or [added] with the reason.

Phase 0 — Proposal ✅ approved 2026-11-27

Section titled “Phase 0 — Proposal ✅ approved 2026-11-27”

Stack, hosting comparison, architecture, monorepo layout, schema drafts, roadmap, risks, names, ADRs 0001–0015.

Phase 1 — Core framework and 2D side-scroller

Section titled “Phase 1 — Core framework and 2D side-scroller”

Split into two gates so the foundation is reviewed before the game is polished. [changed] — Phase 1 is the largest technical phase; an intermediate gate catches API mistakes before a whole game depends on them.

1a — Foundation ✅ approved 2026-11-27

  • Monorepo tooling (pnpm, Turborepo, Biome, Vitest, Playwright, size-limit, TypeDoc), CI workflow that runs locally too.
  • schema (Zod → JSON Schema, validators, migrations scaffold), core (loop, scenes, ECS, events, assets, save, RNG), input (keyboard/mouse/gamepad, action maps, remapping), render-2d (PixiJS adapter + stub renderer), physics-arcade, camera, audio, world (tilemap runtime), devtools (overlay, hot reload).
  • [added] testing package with a headless deterministic runner (seeded RNG + scripted inputs → assertions). Needed for framework tests now and for Phase 2’s run_headless MCP tool.
  • Benchmarks: 5k moving entities at 60 fps (stub renderer); 2k sprites on screen in Chromium.
  • Gate demo: a test scene with a controllable box running on a tilemap with slopes and one-way platforms.

1b — Sample side-scroller ✅ approved 2026-11-27

  • Player movement, variable-height jump, coyote time, jump buffering; two enemy types; collectibles; checkpoints; two levels in the tilemap format; HUD; title and pause menus; gamepad support; music and SFX with crossfade.
  • Original art and audio made in code (owner’s choice): pixel art generated by games/sprout/tools/art.ts, music and SFX as synth data (ADR 0017).
  • [added] Build-time validation (ADR 0016): production bundles ship without Zod.
  • [added] Data-driven gameplay and UI kit in the framework (ADR 0018).
  • Playwright end-to-end: game boots, player can complete level 1 via a scripted input run, no console errors.
  • Generated API docs; docs/getting-started.md; bundle size recorded in docs/perf.md.

Phase 2 — AI integration ✅ approved 2026-11-27

Section titled “Phase 2 — AI integration ✅ approved 2026-11-27”

Delivered: generated llms.txt/llms-full.txt + component and document references, AI guide, tested recipes, agent-tools (shared tool implementations), MCP server (stdio), ai adapter (Claude via the Anthropic SDK, scripted provider, usage meter), create-game CLI, platformer template, tools/evals with three tasks and three runners. [changed] Vercel AI SDK providers (OpenAI, local models) move to Phase 3 with the editor’s BYOK assistant (ADR 0013 amendment). [changed] The docs website (apps/docs) moves to Phase 3; the docs are Markdown in the repo for now.

Original plan: llms.txt/llms-full.txt, recipes, MCP server (stdio), ai adapter, agent-tools, create-game CLI, templates (platformer first). [added] tools/evals: a small suite of scripted tasks (e.g. “add a double-jump power-up”, “make a third level”, “replace the slime with a bat that flies in a sine wave”) run against a fresh AI session using only the MCP server and docs; pass = validate clean + headless assertions pass + a human glance at the screenshot. This makes the Phase 2 success test repeatable instead of anecdotal.

3a ✅ delivered 2026-11-27, awaiting approval — accounts (13+), API + OpenAPI + SDK + publish CLI, data model with money tables, publish pipeline (validate → isolated build → storage), play origin with sandboxed iframe and bridge (cloud saves), catalog with search, game pages, ratings, reports and takedowns, placeholder legal pages, touch controls, docker compose up and a no-Docker local mode (ADR 0019).

[changed] split into 3a/3b — this phase is the second-largest.

  • 3a Accounts (Better Auth), API + OpenAPI + SDK, monetization-ready data model (tables only), publish pipeline (build in isolated worker → validate → static hosting on the play origin), sandboxed play page with the postMessage bridge, catalog with search, game pages, ratings. docker compose up brings it all up.
  • 3b Web editor with the AI-first flow (describe → template → AI edits data/code → live preview), version history with undo/branches, BYOK key management, remote MCP over Streamable HTTP with OAuth, social sign-in (Google, GitHub, Discord) with an age step (providers give no birth date). [changed] split in two (owner, 2026-11-27):
    • 3b-1 (approved 2026-11-28, ADR 0020) workspaces with commits, undo and branches; Monaco editor with schema checks; sandboxed live preview; release from a commit; the assistant with the creator’s Anthropic key (stored encrypted), its game runs and type-checks in the offline sandbox; a free test assistant in local mode.
    • 3b-2 (approved 2026-11-28, ADR 0021) remote MCP over Streamable HTTP with OAuth (tools edit branch drafts), social sign-in with an age step, more providers through the Vercel AI SDK (OpenAI, OpenAI-compatible, Ollama; user-typed URLs public https only), the docs website (Starlight).
  • [added] Minimum moderation and legal basics before anything can be published, even locally: report button, admin takedown, terms/privacy placeholders, copyright (DMCA-style) process, age gate decision. Originally Phase 4, but any publishing surface needs them.
  • [added] Basic touch controls (on-screen buttons from the action map) so published games are playable on phones from day one; full mobile polish stays in Phase 5.
  • [decided 2026-11-27: no] a private staging deployment at the end of Phase 3. The owner’s local Compose environment serves as staging for now; a cloud staging environment may come alongside production (Phase 7).

Visual level editor (tiles, entities, triggers; reads/writes the level schema; usable by the AI too), content packs, expansion permissions, approval queue, fork/remix with lineage and attribution. Pack loader merges packs into a game at runtime with namespacing to avoid id collisions. [decided 2026-11-28] split into 4a/4b, a gate after each.

  • 4a (approved 2026-11-29, ADR 0022) Visual level editor in the platform editor: a data-only Canvas 2D view (no game code on the web origin), tile painting, entities from prefabs, triggers and points, undo/redo; the same level edits as agent tools (AI, MCP); “Play from here” in the sandboxed preview.
  • 4b (approved 2026-11-29, ADR 0023) Content packs built in the platform editor (pack workspaces) or uploaded; pack loader with <pack>:<id> namespacing and an Expansions menu; per-game approval queue; approved packs opt-in per player; fork/remix of the live release with lineage and attribution.

Top-down open-world template (chunk streaming, NPC FSM/behaviour trees, A* pathfinding), 3D template (Three.js, Rapier 3D, glTF), arcade template, gameplay package (dialogue, inventory, quests, localization), full touch controls and virtual joysticks, responsive play. Confirm ADRs 0005 and 0006 (rigid-body part) at the start. [decided 2026-11-29] split into 5a/5b/5c, a gate after each; ADR 0005 (Three.js) and ADR 0006 (Rapier 2D + 3D) confirmed; template art is made in code (low-poly 3D models generated in code, written as glTF).

  • 5a (approved 2026-11-29, ADR 0024) Top-down open-world template (chunked maps, NPC state machines / behaviour trees, A* pathfinding) and the gameplay package (dialogue, inventory, quests, localization).
  • 5b (approved 2026-11-29, ADR 0025) Arcade template, full touch controls and virtual joysticks, responsive play.
  • 5c (approved 2026-11-30, ADR 0026) 3D template: render-3d (Three.js), physics-rapier (Rapier 2D + 3D), glTF.

Player profiles, cross-game leaderboards and achievements (through the bridge), multiplayer netcode per ADR 0014 with a sample game (e.g. 2–4 player co-op or a small arena). Anti-cheat basics: server authority, rate limits. [decided 2026-11-30] split into 6a/6b (ADR 0027), a gate after each.

  • 6a (approved 2026-11-30, ADR 0027) Profiles, leaderboards (bounds, rate limits, replay checks in the sandbox) and achievements through the bridge.
  • 6b (approved 2026-11-29, ADR 0027) Multiplayer as a deterministic input relay (the server never runs game code; changes ADR 0014): the rooms service (apps/rooms, @ludrel/net), signed tickets, lobby and invite links, lockstep with input delay, state hashes for desync detection, and the arena template (Berry Brawl, 2–4 players).

Phase 7 — Cloud deployment and monetization

Section titled “Phase 7 — Cloud deployment and monetization”

[changed] split into 7a/7b.

  • 7a [approved 2026-11-30, ADR 0028] Production on a single VPS (provider-neutral; written and checked, deployed by the owner): Caddy with wildcard TLS, backups, monitoring/alerting, runbooks, deploy script, load test against the 10k-player profile, security review of the sandbox. AWS via CDK (ADR 0011) moves to a later phase; region, data residency and the game-file CDN are revisited then.
  • 7b Payments provider integration (Stripe Connect or merchant of record), purchases, subscriptions, in-game purchases via the bridge, ads (with consent management), revenue-share payouts from the ledger, tax handling, refunds.

Action items after naming (owner, 2026-12-01)

Section titled “Action items after naming (owner, 2026-12-01)”

The 2026-12-01 rename covered @platform-name/* and [PLATFORM_NAME] only. Still to do:

  • Deeper sweep of placeholder names. pn (“platform name”) survives as the auth cookie prefix (apps/api/src/auth.ts, pn.session_token; changing it signs everyone out) and the play-bridge protocol id (packages/play-bridge, pn-bridge/1; published games carry it, so accept both during a transition). “platform” is still the product’s name in many places: the pnpm platform CLI, platform:* scripts, PLATFORM_* env vars, the compose project and images (platform-prod, platform-app), /opt/platform on the server, the Postgres user and database, and the S3 bucket. Prod data lives under some of these (database, bucket, server folder), so that part needs a migration plan and the owner’s OK; generic uses of the word (“the platform”) stay.
  • Rename the local folder and Claude project. ~/Developer/Game Platform → e.g. ~/Developer/ludrel. Claude Code keys its project memory on the folder path, so move the memory folder with it; do it when no session is running in the folder.
  • Logo. (Done 2026-12-02: B2 grid tile + Outfit wordmark, brand/.) Start from the Ludrel idea on file: an L built from teal grid tiles with one coral tile being placed. Wordmark, app icon, favicon, social image.
  • Better site design. A visual pass over apps/web (catalog, game page, editor shell, sign-in) built around the logo: colour, type, spacing, dark mode. Needs a design brief and the owner’s sign-off before code.

Order from the owner: the logo first, then the rest. Each item gets a short plan (and an ADR where it changes the data model or policy) before code.

  1. Logo. Done 2026-12-02 (brand/README.md).
  2. Much nicer website design. See “Better site design” above. In progress: brief and mockup approved (docs/design/site-redesign.md); steps 1–3 done 2026-12-02 (theme, header and footer, home page, thumbnails and play history in ADR 0029). Next: the game page and the other pages, then the docs site at docs.ludrel.com.
  3. Admin: users and roles. An admin page listing users, where an admin changes a user’s roles/permissions and invites someone to become an admin (email invite; accepting needs a signed-in account). Today admins come only from ADMIN_EMAILS. Decide the roles (e.g. admin, moderator, user) and how they relate to ADMIN_EMAILS.
  4. Content ratings. The creator sets a content rating, a suggested minimum age and descriptors (violence, strong language, fear, in-game chat with others, …) per game; moderators audit and can override. Shown on the game page and catalog; maybe filters. Choose a scheme (own simple one vs. modelled on IARC/ESRB/PEGI).
  5. Mobile. Games don’t run on iOS (Android untested), and full screen doesn’t work on mobile. Outside full screen, touch controls sit below the game view, not over it. In full screen, no controls are drawn over gameplay; instead creators are required (or strongly advised) to include a tutorial or temporary control hints. Revisits ADR 0025’s touch overlay; iOS Safari has no Fullscreen API for non-video elements, so “full screen” there needs another approach (e.g. a fixed full-viewport layout or an installable web app).
  6. Password reset. “Forgot password” by email (Better Auth supports it).
  7. Placeholder review and a version number. List every placeholder page or text to be drafted (terms of use, privacy policy, …). Replace “Local MVP” with a real version number and a scheme for bumping it.
  8. Thorough rename sweep. Extends “Deeper sweep of placeholder names” and “Rename the local folder” above: code, scripts, pnpm package names (no package called platform), env vars, docs, the Claude project, the server. Ask the owner whenever a case is unclear.

Owner additions (2026-11-27) — scheduled for later, each needs a design pass first

Section titled “Owner additions (2026-11-27) — scheduled for later, each needs a design pass first”

Placed into the phases they depend on. Every item below gets a design doc + ADR before any code, because each one has legal, privacy or business-model questions that are the owner’s call.

  1. Licensed self-hosting of the engine and game servers → Phase 6 (needs the multiplayer server) with licensing in Phase 7. Developers run the runtime, the core assets and their own games on their own infrastructure (not the platform or marketplace), to scale traffic and keep multiplayer latency low. Gated by licences the owner issues and manages: signed licence keys verifiable offline, entitlements (games, seats, regions, expiry), revocation and renewal, a licence admin console. Later option: a paid subscription to scale a developer’s capacity on the platform’s own servers instead. Ties into the open framework-licence question (today UNLICENSED): this model suggests a source-available or proprietary licence for the engine rather than MIT; decide before any public release.
  2. Universal in-platform currency → earmarked design task, Phase 7b. One credit balance usable in every participating game, bought with real money. To work out: purchase flow and pricing, how games earn and redeem, revenue share, refunds and chargebacks, expiry, fraud. Needs legal review early: stored-value and money transmission rules, consumer protection, taxes, rules for minors, and app-store rules if mobile apps come later.
  3. In-game chat → Phase 6. A drop-in text chat module games can add with a few lines of data (channels: game, party, direct), with moderation from day one (filters, reporting, mute and block, rate limits, age rules). Later: live voice, then video, over WebRTC with a media server; separate privacy and safety review.
  4. Ads → Phase 7b, with design work earlier.
    • In-game ads: an engine component that shows ads inside gameplay (billboards in the world, sponsored items, breaks at scene transitions), with frequency caps and rules games can set.
    • Sideline ads: ad slots around the game on the platform’s pages, filled at first by standard ad networks (publisher side, e.g. Google AdSense / Ad Manager).
    • Targeting keywords: designers anchor keywords to a game, and to specific levels or areas (data in the manifest and scenes); player-specific keywords also feed the ad networks. Player-level targeting needs consent management (GDPR, CCPA), and children’s privacy rules (COPPA) limit it for young players, which depends on the open age-policy question; contextual (game and level) keywords work without personal data.
    • Pay to remove ads: an entitlement per player (per game or platform-wide), via the same payment system.
  • Docs and llms.txt regenerated on every change; ADRs for new decisions.
  • Performance budgets enforced in CI (size-limit, benchmark thresholds).
  • Accessibility basics in the platform UI and in the UI kit (remappable controls already planned; add reduced motion, colour-blind-safe defaults, captions for dialogue).
  • Privacy: minimal data collection; analytics events designed to work without third-party trackers.