arXiv:2610.38987cs.AIOct 2026

Manuscript Offprint

arXiv:2610.38987

Syntactic Segmentation and Collage Generation for Videogame Levels with Perceptual Distance

Ross Mawhorter, Matthew Guzdial

Abstract

In procedural videogame level design, many existing techniques combine hand-authored level chunks. Some existing analysis techniques also rely on a higher-level graph structure which abstracts the level design. In this paper, we explore techniques for computing both of these things automatically from an existing design. We introduce the concept of perceptual distance, based on analysis techniques from the architecture subfield of Space Syntax. We use this perceptual distance to segment level designs with hierarchical clustering. We compare with past work on StarCraft analysis, show results on rooms from Super Metroid, and also demonstrate a proof-of-concept level generation algorithm based on this segmentation method.

Introduction

Segmentation is a form of analysis that involves both splitting up something (partitioning), and determining the relationships between the partitions. The quality of a given segmentation is a function of why that segmentation was created in the first place. For example, prior work on StarCraft (Pardo 1998) treats tactical analysis as a segmentation problem (Perkins 2010). In this case, clusters denote the partitions of a StarCraft map, and the edges between clusters denote choke points in the map: places that a player can use to control the flow of units. The quality of a segmentation for this task depends on how useful it is to the AI systems that depend on it for unit movement. This paper presents a novel method for 2D level design segmentation based on a concept called perceptual flux, which is closely related to isovist fields (Benedikt 1979).

An isovist is a polygon that describes the visible space at a given location. Perceptual flux measures changes in the boundary of this shape, and our segmentation approach marks segment boundaries based on those changes. This technique is an automated way to address some of the hand-authoring costs of other procedural level design techniques. We identify three major categories of procedural level design to which our approach could apply. Firstly, many existing procedural level design approaches attempt to replicate input data (for example, Markov

Chains (Summerville et al. 2018) and WaveFunction Collapse (WFC) (Gumin 2016)). These approaches successfully replicate short-range relationships between tiles but often fail to capture longer-range dependencies. Existing attempts to solve this problem involve hand-authoring: either adding additional constraints to a constraint-solving implementation of WFC or manually creating a separate set of per-structure rules (Lee, Partlan, and Cooper 2020; Piepenbrink and Bidarra 2025; Alaka and Bidarra 2023). A high quality automated segmentation approach could solve such problems without additional human authoring, though we do not apply our approach to this task in this paper.

Other existing procedural level design techniques (for example mission-graph-based generation (Dormans 2010) and constrained graph generation from examples (Cooper 2023)) rely on generating a higher-level graphical description of a level before converting it into actual level geometry. This type of generation relies on either hand-authored grammar rules or hand-authored example graphs. Our segmentation technique is an automated way to create a graph abstraction of an existing tile representation.

Finally, many existing generators work by stitching together pre-authored (or partially pre-authored) content. This creates a different authoring challenge: creating a set of components that can be combined to create many distinct and larger level designs. In this paper we explore this type of collage-based procedural level design using components that are automatically identified by perceptual segmentation.

This paper's contributions are:

  • A new concept of perceptual distance based on a scaled version of isovist information (along with a justification for why this is more useful than standard isovist statistics).
  • Perceptual Distance Segmentation (PDS): a hierarchical clustering algorithm based on this distance metric (along with comparison to prior work).
  • A basic collage-based procedural level design algorithm that uses the clustering algorithm to automatically remix existing content (and an example application to Super Metroid (Sakamoto 1994)).

Copyright © 2026, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.