OpenGame

Generates playable web games end-to-end from text prompts using an open-source agentic framework with specialized LLMs and automated debugging.

A high-resolution social sharing image preview for OpenGame tool.

The gist

OpenGame is an open-source agentic framework developed by researchers at CUHK MMLab. It addresses the challenge of creating fully playable web games from high-level prompts, a task where traditional large language models often fail due to complex integration issues and logical inconsistencies across multiple files and game states.

What it does

  • Generates full web games from a single text prompt.
  • Scaffolds stable project structures using a template skill.
  • Systematically debugs and resolves integration errors in generated games.
  • Leverages a specialized code LLM, GameCoder-27B, for game engine expertise.
  • Evaluates game playability via headless browser execution and VLM judging.

How it works

OpenGame operates as a command-line interface tool, accepting a single text prompt as input to guide game creation. It leverages an internal agent, powered by the specialized GameCoder-27B LLM or other OpenAI-compatible models, along with various asset generation providers. The framework scaffolds, codes, and debugs the game automatically, outputting a complete, playable web game. It is open-source, requiring users to self-host and provide their own API keys for AI services.

Best for

Ideal for developers and researchers aiming to rapidly generate fully playable web games from high-level prompts, especially those interested in exploring advanced agentic coding for interactive applications.

Watch out for

Users must provide their own API keys for OpenAI-compatible LLMs and various asset generation providers, as OpenGame ships without these defaults. The framework is currently command-line driven and requires manual setup of a Node.js environment.