Please use this identifier to cite or link to this item:
https://www.um.edu.mt/library/oar/handle/123456789/150297| Title: | Procedural content generation using WFC in 2D videogames |
| Authors: | Skoć, Antoni Marek (2026) |
| Keywords: | Video games -- Design Constraint programming (Computer science) Algorithms Graph theory Constraint programming (Computer science) |
| Issue Date: | 2026 |
| Citation: | Skoć, A. M. (2026). Procedural content generation using WFC in 2D videogames (Bachelor’s dissertation). |
| Abstract: | This project developed a room-based generator using Wave Function Collapse within a 2D GameMaker prototype. The system generates dungeons as room graphs embedded within a coordinate grid, where each room is represented by a door mask that identifies its connections to neighbouring rooms. The generator makes use of room archetypes, constraint propagation and a validation mechanism to create fully connected and explorable dungeons. To provide more control over the generated layouts three different generation styles were introduced: CORRIDOR, BRANCHY and VERTICAL. These styles affect the probabilities of specific archetypes getting picked during generation, which leads to the WFC model creating vastly different dungeon structures. The game prototype also includes a locked-gateway mode, causing the dungeon to be split into two regions. In locked-gateway mode player progression is directly tied to them finding a key in one of the generated rooms. Only once the key has been picked up, can the player pass through the gateway, and reach the end room. The system was evaluated using manual functional tests as well as a structural metrics CSV export. Evaluation was performed over 180 dungeons in total. Evaluation results have shown that the CORRIDOR, BRANCHY and VERTICAL style setting worked as intended, and proved the generator parameterisable. Overall the project shows that WFC can be adapted into a controllable parametrisable dungeon generation system for room-based levels. |
| Description: | B.Sc. (Hons)(Melit.) |
| URI: | https://www.um.edu.mt/library/oar/handle/123456789/150297 |
| Appears in Collections: | Dissertations - FacICT - 2026 |
Files in This Item:
| File | Description | Size | Format | |
|---|---|---|---|---|
| 2608ICTICT391405084111_1.PDF Restricted Access | 1.33 MB | Adobe PDF | View/Open Request a copy |
Items in OAR@UM are protected by copyright, with all rights reserved, unless otherwise indicated.
