How agheadley32/dungeon-game works
Dungeon Escape is a seed-driven Java dungeon adventure. The player starts a game, selects a hero, explores generated rooms to collect shards and assemble a key, evades a zombie, and answers a final riddle. Main.java owns the game flow and rendering calls; World.java generates the tile map, while the tile engine represents and draws it. The README documents gameplay stages not fully visible in the sampled excerpts, so those links are cited to the README; unsampled enemy and selection behavior is not independently verified.
Main entry points: Main.java Title and intro · TETile.java Tile model · World.java World generation · Tileset.java Tile definitions
Components 15
Game flow
- Title and intro
src/core/Main.java - Seed input
src/core/Main.java - Hero selection
src/core/Main.java - Dungeon exploration
src/core/Main.java - Shard collection
src/core/Main.java - Key assembly
src/core/Main.java - Zombie chase
src/core/Main.java - Final riddle
src/core/Main.java
Dungeon world
- World generation
src/core/World.java - Random utilities
src/utils/RandomUtils.java
Tile rendering
- Tile definitions
src/tileengine/Tileset.java - Tile model
src/tileengine/TETile.java - Frame renderer
src/tileengine/TERenderer.java
Saved state
- Save file
save.txt
Other components
- Player
Connections 15
- Player → Title and intro: starts game
README.md - Title and intro → Seed input: begins new game
README.md - Seed input → Hero selection: continues to
README.md - Hero selection → Dungeon exploration: enters dungeon
README.md - Dungeon exploration → Shard collection: collects gems
README.md - Shard collection → Key assembly: assembles key
README.md - Key assembly → Zombie chase: evades enemy
README.md - Zombie chase → Final riddle: reaches challenge
README.md - Seed input → World generation: generates map
src/core/Main.java - World generation → Tile definitions: uses tiles
src/core/World.java - Title and intro → Frame renderer: renders frame
src/core/Main.java - Frame renderer → Tile model: draws tiles
src/tileengine/TERenderer.java - Tile definitions → Tile model: defines tiles
src/tileengine/Tileset.java - Tile model → Random utilities: varies color
src/tileengine/TETile.java - Title and intro → Save file: loads and saves
src/core/Main.java