Skip to content

Academic · 2024

Dungeon Exploration

A 2D Java game with dungeon exploration, monsters, an inventory and procedural level generation.

Java

Problem

Create a dungeon exploration game and use an object model for characters, items and levels.

Implementation

  • Swing graphical interface with a map, inventory and player statistics.
  • Game object model: player, monsters, walls, doors, items and exits.
  • Loading predefined levels from text files.
  • Dungeon generation with rooms, corridors and game object placement.
  • Separation of model, view and controllers; launching through a JAR.

Decision

The object model describes the different game entities, while separate controllers connect them to the interface and game loop.

Connect randomly generated rooms with corridors and place the player, exit, monsters and items on a shared map.

Outcome

The repository provides the source code, levels, assets and a JAR for local execution.