MaLiang: Painting Playable Game Worlds from Numbers
Recent playable video generation systems use a simulator to update the game state and a video model to render it. These systems typically condition the video model on proxy footage, such as low-poly or color-coded frames, that must first be rendered in a game engine. We present MaLiang, which conditions a video diffusion transformer directly on a per-pixel integer map representing the scene, characters, body parts, and attack effects. Our Native Numerical Conditioning method encodes this map with a 9.4-million-parameter class-pooling encoder, eliminating the need to render proxy footage or encode it with a video autoencoder. The map serves as a Numerical Canvas that game rules can edit and the model renders into video. With the backbone and training data held fixed, integer conditioning matches color-coded conditioning in image quality and layout fidelity while providing more precise control over characters and effects, even against a color encoder of equal cost. A distilled causal student streams at 22 frames per second on a single GPU, reflects game-state edits in the next generation step, and renders previously unseen procedurally generated worlds. On held-out recordings, MaLiang achieves a lower Frechet Video Distance (154 vs. 391) than the strongest off-the-shelf renderer evaluated, a 33-billion-parameter model, with no statistically significant difference in semantic accuracy. Project page: https://yeyinglab.github.io/MaLiang/, Code: https://github.com/YeyingLab/MaLiang
