You are browsing as a guest. Sign up (or log in) to start making projects!

Reid

@Reid

Joined June 1st, 2026

  • 6Devlogs
  • 3Projects
  • 1Ships
  • 15Votes
Attempting to hunt down all the bugs in my code (its not working)
Ship

This is my first ship so I hope you all enjoy it.

I made a Dungeon Adventure game that you run in your terminal or shell depending on what device you use. You can go through different dungeon levels that are randomly generated each time you enter a new one. You can also buy lifes or open chests in the shop using gold or keys that you can gather from withen the dungeon, but be careful because there are enemies that can attack you as well so keep an eye on your life and where the enemies are.

Some challenges I faced while making this project were figuring out how to make the enemy movement and make it work well, I would say it was probably one of my most difficult and common problems because i had to rewrite how the enemies spawned and functioned over and over until i figured it out. I also had problems with making the small room generations withen the dungeon, because they would constantly keep generating paths that went outside the map causing a crash and i couldnt figure out why for the longest time (like most times with a problem like this it was a kinda simple solution but i still took forever to figure it out).

I think my favorite part was making the random map generation because I found it fun to make and I built an algorithm to do it basically from the ground up which was exciting. I did have alot of problems with this too but I figured them out as well.

This game is run in a terminal and you do need external libraries such as readchar and colorama to run the program. It comes in 2 files one is the main one you run and the other has a bunch of functions that are called from the first one or even from other functions because alot of the things need to be repeated constantly.

Anyways i hope you guys enjoy this project and that it works for you (because im kinda scared that I uploaded something wrong or something to where it wont work for you guys) So have fun and let me know if anything isnt working right by commenting on one of my devlogs or contacting me in Slack (Jason Challand)

  • 6 devlogs
  • 25h
Try project → See source code →
Open comments for this post

6h 3m 51s logged

This is probably my longest work period between devlogs, I did also take
like a week break in between them to. Im also hoping i can ship the project after this

  • I worked on making the enemy movement smoother and work better, i
    decided to not use threading to run multiple loops since i didn’t like
    how it worked so i just did it semi turn based where the player moves
    and the enemies will then move, but its so quick the player can just
    hold down a button to move and it will move them multiple spaces
    seamlessly.
  • I also worked on polishing the UIs like the Inventory and Shop so that
    they look better, they now have color and look nice.
  • Something else i worked on was making a Info option too that tells you
    a little about the game
  • I worked on making the code look cleaner and I added a bunch of comments so that anyone looking at it (and me later when i forget what it does) would know how it works and what does what.
  • The Shop got chests added to it which can be opened with keys that you can also now collect in the dungeons.

Thats pretty much it I did, im probably forgetting a few things but oh well. Im planing on making my first ship soon so Im trying to get it working well enough for people to use it

2

Loading discussion…

0
22
Open comments for this post

5h 20m 21s logged

I redid the enemy spawning yet again, but it’s much simpler and easier to modify now. I’ve also been working on enemy movement using the threading library to run multiple loops or functions at a time.

I’ve also been working on trying to make the generation for each dungeon level better. One of my friends gave me the idea of having some rooms or something in each level, however there is a few bugs with it, in the photo below you can see it generates a path that just goes straight across the map whenever a room spawns on the initial path, and players can crash the game if they try to leave the map, so I need to fix both of those

0

Loading discussion…

0
4
Open comments for this post

4h 5m 18s logged

I decided to redo some of the enemy/gold generation which toke me a while since I had to change it from doing a random percent of each row to a random percent of the whole map. I also worked on making some UIs (idk if that’s what these are technically called) for choosing to enter a dungeon, open the shop etc. Ive also started working on switching the way the enemies work.

0

Loading discussion…

0
5
Open comments for this post

5h 37m 5s logged

I recolored some of the map and i added enemy’s and gold. The gold you can gather and get 1-3. The enemy’s take a life from you, if you lose all 5 lives you lose. I fixed a few visual bugs and i split the file into 2 files so i can use import and the call function to be able to do multiple levels. I also scaled the map up more so its easier to see.

0

Loading discussion…

0
6
Open comments for this post

2h 12m 9s logged

I mostly redid the random map generation making the user able to actually reach the end of the dungeon without getting stuck. I also added some color to it so the walls and floor are easy to see. I also added a safety check on the player movement and map generation so the player couldn’t move outside of the map. I started to make it more interactive.

0

Loading discussion…

0
5
Open comments for this post

1h 19m 57s logged

I worked on setting up a random map generator and making it so the player could move around the map. I then added a fix that prevents the players from going through the walls. I then also setup a basic treasure/gold gathering system. After a bit I decided to redo most of the map generation and I’m still working on it. I didn’t realize I was supposed to have photos so this one is of a older version of it from my phone

0

Loading discussion…

0
2

Followers

Loading…