How martinsuii/another-dungeon-game works
Another Dungeon Game is a vanilla JavaScript browser dungeon crawler. The main loop is player input, exploration and combat across generated floors, then a run result that can update local records or be submitted to the leaderboard. Markets, bosses, secrets, achievements, settings, and touch controls are documented capabilities; the sampled implementation is mostly one large game.js file, so its internal responsibilities share that path. Relationships for unsampled features rely on README statements rather than inspected implementation.
Main entry points: game.js Game Runtime
Components 16
Play Runtime
- Game Runtime
game.js
Dungeon Gameplay
- Floor Generation
game.js - Movement and Pathfinding
game.js - Combat and Enemies
game.js - Boss Encounters
game.js - Market and Vendors
game.js - Secrets and Quests
game.js
Player Progress
- Run Economy
game.js - Best Run Records
game.js - Achievements
game.js - Settings and Language
game.js
Interface and Services
- Keyboard and Touch
game.js - Canvas and Interface
game.js - Leaderboard
game.js
Other components
- Player
- Supabase
Connections 15
- Player → Keyboard and Touch: provides input
README.md - Keyboard and Touch → Game Runtime: controls play
README.md - Game Runtime → Floor Generation: generates floors
README.md - Game Runtime → Movement and Pathfinding: moves and validates
game.js - Game Runtime → Combat and Enemies: runs encounters
README.md - Game Runtime → Boss Encounters: starts boss fights
README.md - Game Runtime → Market and Vendors: opens market floors
README.md - Game Runtime → Secrets and Quests: runs secret quests
game.js - Game Runtime → Run Economy: updates run resources
README.md - Game Runtime → Best Run Records: saves browser records
README.md - Game Runtime → Achievements: awards goals
README.md - Game Runtime → Settings and Language: loads and saves preferences
README.md - Game Runtime → Canvas and Interface: draws game interface
README.md - Game Runtime → Leaderboard: reads and submits scores
README.md - Leaderboard → Supabase: validates submissions
README.md