Dungeon Generator

2D Dungeon generator featuring scalable dungeon size and enemy difficulty. Enemy logic includes pathfinding and a complete gameplay loop with win/lose condition.

Procedural Generation

The procedural generation system dynamically creates a unique dungeon layout each time the game is loaded. It operates on a gird-based node structure, where nodes are evaluated and connected using a pathfinding algorithm to ensure that rooms and corridors are logically linked and traversable.

Enemy pathfinding

The enemy AI system utilizes an A* (A-Star) pathfinding algorithm to dynamically navigate the procedurally generated dungeon environment. Each enemy locates the nearest walkable node within the dungeon grid and computes an optimal path toward the player’s position by evaluating node connectivity and movement cost.

Gameplay Loop

The game features a fully procedural dungeon crawler experience, starting from a customizable main menu where the players set the dungeon size and difficulty. A dynamic loading screen transitions into a unique dungeon run filled with enemy encounters and a final boss battle. Each playthrough ends with clear win or lose conditions, creating a complete, replayable gameplay loop from start to finish.