Menu

Categories

Tags

This AI generates complete, playable web games from a single prompt

April 24, 2026 | alex | Developer | 185 views 0 comments

There's a new open-source project on GitHub called OpenGame that can generate a full, playable web game from a single sentence prompt. Not scattered code snippets, but a complete project structure with its own game engine, real-time loop, and cross-file state management.

GitHub:

leigest519/OpenGameleigest519/OpenGameleigest519/OpenGame · github.com

Website:

https://opengame-project-page.com

Paper:

https://arxiv.org/abs/2604.18394

The project comes from CUHK MMLab and is built around the GameCoder-27B model and the Game Skill framework. Game Skill has two main tools:

  • Template Skill: Distills successful past projects into a library of project skeletons, so you start from proven engineering.
  • Debug Skill: Uses verified repair protocols to fix real integration-level bugs, not just slap on syntax patches.

It can generate a wide variety of game types, such as:

  • A Marvel Avengers side-scrolling action game with Iron Man, Thor, and Hulk as selectable characters, three levels, and a final boss fight against Thanos.
  • A Harry Potter turn-based card game where you cast spells by solving math problems correctly, chaining them for a "magic resonance" bonus.
  • A Squid Game red light, green light game where you must freeze when the robot turns around or get eliminated.
  • A The Mandalorian twin-stick shooter RPG.
  • A cat-themed tower defense game where you defend a tuna can position with cat turrets.

After installation, one command builds a game:

opengame -p "Build a Snake clone with WASD controls and a dark theme." --yolo

When it's done, open index.html and play immediately. It supports OpenAI-compatible APIs: you can use GPT-4o or a locally deployed GameCoder-27B.

There's also an evaluation suite called OpenGame-Bench that automatically runs the generated games in a headless browser and uses a VLM to judge them on build health, visual usability, and intent alignment. The goal isn't just to generate something — it has to be shippable, playable, and actually what you asked for.

Tags: #Github

Leave a Reply

Your email address will not be published. Required fields are marked *