Building a Procedural Browser-Based Pixel Metroidvania in a Day with Fable 5.2 and fal MCP
An overview of a technical experiment where a developer built a browser-based pixel metroidvania game in a single day using Fable 5.2 and fal MCP, featuring rea
Developer Shikhar (@xikhar) has showcased a rapid technical experiment: building and releasing a browser-based pixel metroidvania game in a single day using AI agent tools and modern web graphics. The project achieves real-time execution without relying on traditional game engines, external libraries, or pre-drawn image sprites, relying entirely on procedural generation and web-native rendering.
![]()
Image source: Japanesegreentea 쨌 CC BY-SA 3.0 쨌 https://creativecommons.org/licenses/by-sa/3.0 쨌 https://commons.wikimedia.org/wiki/File:T-fal_logo%2Bstrapline.jpg
The demo runs entirely inside web browsers, leveraging WebGL2—a standard web graphics API—to render pixels natively in real time. By bypassing heavy commercial game engines and complex build pipelines, the project demonstrates how modern web workflows can deliver sophisticated 2D platformer experiences directly in a browser window. The developer noted that the effort was driven by a desire to push technical frontiers rather than immediately package a complete commercial product.
Combining Fable 5.2 and fal MCP for Rapid Game Prototyping
At the core of this project is the integration of Fable 5.2 alongside fal MCP (Model Context Protocol).
- fal MCP: A standardized communication protocol that allows AI models and agents to interact securely with external tools and data sources, including high-performance image and video generation services like fal.
- Procedural Generation: Rather than having a human artist manually draw every asset or map tile, procedural generation uses algorithms and rules to create content dynamically. In this game, visual assets and animations are rendered programmatically rather than relying on static image files.
The developer supplied 1 to 3 reference images to an AI agent, which then leveraged fal's image and video models to generate expanded level designs, character sheets, and element variations. The agent discarded subpar outputs and iteratively refined the remaining assets, turning them into procedural code that executes within the WebGL2 runtime.
Spriteless Real-Time Rendering via WebGL2
Traditional 2D game development typically relies on general-purpose game engines like Unity or Godot, importing massive sets of sprite sheets and image files. In contrast, this project renders pixels directly on the browser screen using WebGL2.
- WebGL2: A web graphics API that enables hardware-accelerated 3D and 2D graphics rendering inside web browsers without requiring external plugins.
- Spriteless Animations: Character motions and environmental elements are calculated frame-by-frame via code and custom rendering pipelines rather than flipping through static image sequences—an approach philosophically akin to procedural animation techniques seen in titles like Rain World.
Verified Workflow and Project Scope
Through this experimental workflow, the developer illustrated how AI agents and multimodal models can assist in building complex interactive systems from scratch:
- Reference-Driven Expansion: Starting with a few reference images, the agent uses underlying image and video models to generate character movement dynamics, level layouts, and asset sheets.
- Procedural Code Reproduction: The agent translates these visual specifications into WebGL2 implementation code that runs natively in the browser.
- Demo Availability and Caveats: A playable web demo has been made publicly available. However, the developer clarified that certain regions and boss encounters remain unpolished, as the project serves primarily as a technical exploration of AI-assisted development capabilities rather than a fully polished commercial release.
Sources
- X (formerly Twitter) Post by
@xikhar: Pixel Metroidvania Built in a Day with Fable 5.2 and fal MCP - Playable Demo Link: Emberwick Demo
- fal MCP Official Reference: fal.ai/mcp