@jshrihankumar on Dungeon Python game
I made a 2D dungeon crawler game using Python and Pygame. In the game, the player moves through a randomly generated dungeon made of rooms and corridors. The goal is to reach the exit while avoiding enemies and collecting healing items. The dungeon changes every time you play, so each run feels different. The game also includes basic enemy AI, where enemies either wander around or chase the player if they get close.
The hardest part of making this game was the dungeon generation system. At first, a lot of the maps I made had problems like rooms not connecting or the exit being unreachable. It took a lot of testing and fixing to make sure every dungeon is actually playable. Another challenge was the enemy AI because I didn’t use advanced pathfinding, so I had to make a simpler system that still feels like the enemies are chasing you. Balancing the game was also tricky because changing small things like damage or enemy count could make the game too easy or too hard.
I’m proud that I was able to build a full working game that actually feels different every time you play. The dungeon generation works, the enemies behave in a somewhat smart way, and there are clear win and lose conditions. I also like that I kept everything in one Python file but still made it work as a complete game.
To test the game, use W, A, S, D to move around. Try to avoid the red enemies because they will damage you if they touch you. Pick up green items to heal yourself. The goal is to reach the yellow/gold exit tile to win. If your health drops to zero, you lose and can restart the game.
- 1 devlog
- 11h