AI PCG – 2D


A hybrid AI-PCG system that uses LLM spatial reasoning to design gated 2D levels. Automate the design-to-prefab workflow and create playable, logically sound dungeons in seconds.


by CatRabbit


Price History +

AI PCG Dungeon Template is a comprehensive boilerplate designed for developers to explore, improve, and imitate the future of level design. This package provides a foundational pattern for bridging the gap between LLM creativity and rigid gameplay logic.


Core Technology:

The heart of this package is the integration of an AI Agent's spatial reasoning. By utilizing high-reasoning models like Gemini, the system generates JSON files that represent a complete, logical level layout. These are not random tiles; they are structured designs with specific architectural intent and solvable gating logic.


The custom Unity Editor Importer then parses these JSON files, validates them against strict connectivity rules (ensuring a clear path from Spawn to Key, Door, and Exit), and automatically instantiates them into Unity Tilemaps.


This package is intended as a "Master Template"—a high-quality starting point that you can study, modify, and extend to build your own unique AI-assisted PCG pipelines.