AI product Open source

ref2game

ref2game is an MIT-licensed skill from studioigor that turns a reference image or concept into a playable 2D browser-game prototype for Claude Code or Codex. The agent studies the image, asks setup questions, creates a project skeleton and style/layout plan, generates art piece by piece, and develops a static playable build while comparing frames with the reference.

View repository Mentioned in 1 video ↓

Overview

Its runtime uses a small WebGL2 engine in which code controls rigs, two-bone character animation, walk cycles, wind, lighting, particles, camera behavior, HUD elements and other effects rather than baking them into the generated images. Background critics and automatic checks evaluate assets, layout, fidelity, motion, foot sliding, joint behavior, collisions and other reported defects; feedback is converted into code changes or regenerated assets and a new check. The final output includes a playable build, textures, manifest and source files.

The skill has separate editions for Claude Code and Codex, supports image generation through Codex, image APIs, local tools or manual assets, and requires Claude Code or Codex, Python 3.9 or later with Pillow, NumPy and SciPy, and Node.js 18 or later. It supports macOS and Linux; Playwright with Chromium is installed on first run, while ffmpeg is needed for video references and renders.

What ref2game is used for

1 use taken from transcripts — each links to the moment in the video.

  • A skill for turning a reference image into a playable 2D game prototype. Give Claude Code or Codex a screenshot and it guides the agent through matching the art, building a browser game, and adding movement, lighting and effects in code.

Videos mentioning ref2game

1 in the library.