GameDojo / README.md
iTheresaApocalypse's picture
Add GameDojo Daily Paper button
1463c78 verified
|
Raw History Blame
11 kB
---
pretty_name: GameDojo
tags:
- gamedojo
- game-agent
- computer-use
- gameplay
- imitation-learning
---
<div style="background-color: #0d0f17; border: 1px solid #232737; border-radius: 12px; color: #eef0f6; padding: 16px 10px; margin: 8px 0 22px;">
<p align="center" style="margin-bottom: 8px;">
<img src="https://gamedojo-benchmark.github.io/assets/img/logo.webp" alt="GameDojo" width="520" style="display: inline-block; width: 520px; max-width: 100%; height: auto; margin: 0;">
</p>
<h1 align="center" style="color: #eef0f6; font-size: 1.35em; line-height: 1.35; margin-top: 0; margin-bottom: 12px;"><span style="color: #ffd98a;">Game</span><span style="color: #3fd9c6;">Dojo</span>: Benchmarking Real-Time Interactive Agents in Video Games</h1>
<p align="center" style="margin: 6px 0 14px;">
<a href="https://arxiv.org/abs/2611.30771" style="display: inline-block; margin: 2px;"><img src="https://img.shields.io/badge/Paper-b31b1b?style=for-the-badge&amp;logo=arxiv&amp;logoColor=white" alt="Paper (arXiv)" style="display: inline-block; vertical-align: middle; margin: 0;"></a>
<a href="https://gamedojo-benchmark.github.io/" style="display: inline-block; margin: 2px;"><img src="https://img.shields.io/badge/Project%20Page-1f6feb?style=for-the-badge&amp;logo=googlechrome&amp;logoColor=white" alt="Project Page" style="display: inline-block; vertical-align: middle; margin: 0;"></a>
<a href="https://github.com/THUSI-Lab/GameDojo" style="display: inline-block; margin: 2px;"><img src="https://img.shields.io/badge/GitHub-232737?style=for-the-badge&amp;logo=github&amp;logoColor=eef0f6" alt="GitHub" style="display: inline-block; vertical-align: middle; margin: 0;"></a>
<a href="https://huggingface.co/THUSI-Lab/GameDojo-4B" style="display: inline-block; margin: 2px;"><img src="https://img.shields.io/badge/Model-ffcc4d?style=for-the-badge&amp;logo=huggingface&amp;logoColor=white" alt="Model" style="display: inline-block; vertical-align: middle; margin: 0;"></a>
<a href="https://huggingface.co/papers/2611.30771" style="display: inline-block; margin: 2px;"><img src="https://img.shields.io/badge/Daily%20Paper-232737?style=for-the-badge&amp;logo=huggingface&amp;logoColor=ffcc4d" alt="Daily Paper" style="display: inline-block; vertical-align: middle; margin: 0;"></a>
</p>
<p align="center" style="background-color: #fff; border-radius: 8px; padding: 4px 1px; margin: 0 auto 14px;">
<img src="https://gamedojo-benchmark.github.io/assets/img/institutions/tsinghua.jpg" alt="Tsinghua University" height="30" style="display: inline-block; vertical-align: middle; height: 30px; width: auto; margin: 4px 2px;">
<img src="https://gamedojo-benchmark.github.io/assets/img/institutions/ucas.png" alt="University of Chinese Academy of Sciences" height="27" style="display: inline-block; vertical-align: middle; height: 27px; width: auto; margin: 4px 2px;">
<img src="https://gamedojo-benchmark.github.io/assets/img/institutions/nus.jpg" alt="National University of Singapore" height="34" style="display: inline-block; vertical-align: middle; height: 34px; width: auto; margin: 4px 2px;">
<img src="https://gamedojo-benchmark.github.io/assets/img/institutions/hku-bilingual.svg" alt="香港大學 · The University of Hong Kong" height="24" style="display: inline-block; vertical-align: middle; height: 24px; width: auto; margin: 4px 2px;">
<img src="https://gamedojo-benchmark.github.io/assets/img/institutions/macau.png" alt="University of Macau" height="30" style="display: inline-block; vertical-align: middle; height: 30px; width: auto; margin: 4px 2px;">
</p>
<p align="center" style="line-height: 1.65; margin-bottom: 6px;"><strong style="color: #eef0f6;"><span style="white-space: nowrap;">Kuan Zhang<sup style="color: #ffd98a;">1,*</sup>,</span> <span style="white-space: nowrap;">Zhihao Yang<sup style="color: #ffd98a;">2,*</sup>,</span> <span style="white-space: nowrap;">Yukun Chen<sup style="color: #ffd98a;">2,*</sup>,</span> <span style="white-space: nowrap;">Xingyiliang Yin<sup style="color: #ffd98a;">3</sup>,</span> <span style="white-space: nowrap;">Mingyu Ouyang<sup style="color: #ffd98a;">4</sup>,</span> <span style="white-space: nowrap;">Yue Su<sup style="color: #ffd98a;">5</sup>,</span> <span style="white-space: nowrap;">Xiangnan Wu<sup style="color: #ffd98a;">2</sup>,</span> <span style="white-space: nowrap;">Jiaming Li<sup style="color: #ffd98a;">2</sup>,</span> <span style="white-space: nowrap;">Longze Chen<sup style="color: #ffd98a;">2</sup>,</span> <span style="white-space: nowrap;">Run Luo<sup style="color: #ffd98a;">4</sup>,</span> <span style="white-space: nowrap;">Zirong Chen<sup style="color: #ffd98a;">1</sup>,</span> <span style="white-space: nowrap;">Lu Wang<sup style="color: #ffd98a;">1,†</sup>,</span> <span style="white-space: nowrap;">Yiming Li<sup style="color: #ffd98a;">1,†</sup></span></strong></p>
<p align="center" style="color: rgba(238, 240, 246, 0.62); font-size: 0.9em; line-height: 1.6; margin-top: 0; margin-bottom: 4px;"><span style="display: inline-block; margin: 0 5px;"><sup style="color: #ffd98a;">1</sup> Tsinghua University</span> <span style="display: inline-block; margin: 0 5px;"><sup style="color: #ffd98a;">2</sup> University of the Chinese Academy of Sciences</span> <span style="display: inline-block; margin: 0 5px;"><sup style="color: #ffd98a;">3</sup> University of Macau</span> <span style="display: inline-block; margin: 0 5px;"><sup style="color: #ffd98a;">4</sup> National University of Singapore</span> <span style="display: inline-block; margin: 0 5px;"><sup style="color: #ffd98a;">5</sup> University of Hong Kong</span></p>
<p align="center" style="color: rgba(238, 240, 246, 0.62); font-size: 0.85em; margin: 0;"><span style="display: inline-block; margin: 0 5px;"><sup style="color: #ffd98a;">*</sup> Equal contribution</span> <span style="display: inline-block; margin: 0 5px;"><sup style="color: #ffd98a;">†</sup> Co-corresponding authors</span></p>
</div>
## Overview
GameDojo-Data is a 600-hour corpus of gameplay trajectories from GameDojo. It covers 120 boss encounters across 20 game environments, with 60 encounters each in 2D and 3D. Each encounter is recorded at Easy, Medium, and Hard difficulty. The trajectories support imitation learning from visual observations and keyboard and mouse actions across different game mechanics.
## To-do
- [x] Release the benchmark environments, training interfaces and PPO example, and evaluation harness.
- [ ] Release the 600-hour GameDojo-Data trajectory dataset.
## Download and launch
Clone the complete environment bundle with Git. Use Python 3.12 and install Node.js if you need symbolic observations in shared web games. Minecraft RGB rendering needs an OpenGL context.
```sh
git clone https://huggingface.co/datasets/THUSI-Lab/GameDojo GameDojo
cd GameDojo
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install -r environments/requirements-games.txt
python -m playwright install chromium
```
To play in your browser, start the launcher.
```sh
python -m http.server 8766 --bind 127.0.0.1 --directory environments/games/web
```
Open [the local launcher](http://127.0.0.1:8766/). For Minecraft, run `python environments/games/prototype/bossbench/play_server.py` in a second terminal with the virtual environment active and open [the Minecraft page](http://127.0.0.1:8765/). See the [environment setup guide](environments/README.md) for more options.
## Train a visual policy
Run the included single-encounter PPO example from this checkout with the virtual environment active. The example trains with the game clock paused.
```sh
python -m pip install 'stable-baselines3==2.9.2'
python examples/ppo.py --case doom/cyberdemon --tier easy train --steps 10000 --output runs/doom-ppo.zip
python examples/ppo.py --case doom/cyberdemon --tier easy eval --checkpoint runs/doom-ppo.zip --episodes 5
```
The example uses RGB observations, compact actions, and progress rewards. It reports win rate and mean progress on separate evaluation seeds. Custom trainers can use `bossbench.make_training_env` with `PYTHONPATH=environments/games/prototype`.
## Evaluate agents
From the environment checkout, run a no-op smoke check or point the harness at an OpenAI-compatible vision-language model endpoint.
```sh
python environments/run_model.py --case doom/cyberdemon --tier normal --policy noop --max-steps 1
python environments/run_model.py --case doom/cyberdemon --tier normal \
--policy chat --base-url http://127.0.0.1:8000/v1 --model gamedojo-4b \
--format lumine --time paused --seeds 1-3 --out runs/eval
```
Set `OPENAI_API_KEY` if your endpoint requires authentication. Select `--format semantic` for semantic actions and `--time realtime` for inference-latency-aware interaction. Runs save per-episode outcomes, progress, and JSON and CSV summaries. Run `python environments/run_model.py --help` for the available settings.
## Code license
Original GameDojo environment, training, and evaluation code is available for non-commercial scientific research under the [GameDojo Non-Commercial Research License](environments/LICENSE). The original games and their intellectual property belong to the respective original game companies and rights holders. See the [third-party notices](environments/THIRD_PARTY_NOTICES.md).
## Collection
We use coding agents to write encounter-specific behavior-tree controllers from environment source code, internal state information, and task instructions. These controllers play the encounters in parallel across simulator instances. We verify episode outcomes using the environment state.
## Coverage
| Corpus statistic | Value |
| --- | ---: |
| Gameplay collected | 600 hours |
| Game environments | 20 |
| Boss encounters | 120 |
| Difficulty levels per encounter | 3 |
| Mean gameplay per encounter and difficulty | 100 minutes |
| Balanced subset used for GameDojo-4B | 240 hours |
## GameDojo-4B training subset
We sample 40 minutes per encounter at each difficulty to form the 240-hour subset. We use the subset for supervised fine-tuning of Qwen3.5-4B. The resulting GameDojo-4B checkpoint generates keyboard and mouse actions through the GameDojo CUA interface.
## Availability
The trajectory files are pending release on the Hub.
## Citation
```bibtex
@article{zhang2026gamedojo,
title = {GameDojo: Benchmarking Real-Time Interactive Agents in Video Games},
author = {Zhang, Kuan and Yang, Zhihao and Chen, Yukun and Yin, Xingyiliang and Ouyang, Mingyu and Su, Yue and Wu, Xiangnan and Li, Jiaming and Chen, Longze and Luo, Run and Chen, Zirong and Wang, Lu and Li, Yiming},
journal = {arXiv preprint arXiv:2611.30771},
year = {2026}
}
```
We also invite you to explore and cite [Gamer](https://mihoyo-gamer.github.io/), [GameScaling](https://gamescaling.github.io/), and [Survey: Towards Generalist Game Agents](https://github.com/THUSI-Lab/Awesome-LFMs-Play-Games).