Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I didn’t catch it at first glance, but really appreciated you included what the items did. And curious how you randomly generated the dungeons. I think your idea could definitely be expanded upon. 

(+1)

The generation of dungeons in this game is not really good because it is too rigid/ doesn't allow unexpected or cool dungeons but I can still tell you roughly how it's done. Basically I make an array of array of character like "G" or "W" to represent the tiles (ground and wall here). Later on it's used to place tiles on the map that are simply sprites. Now to place characters in the array it's simply a long method with rules one by one: On the last line, place a grass ground. Then for the line above ground, choose a start for the hall (every hall measure 6 tiles so start from position 1 to mapMaxX-6) then place walls (behind) for the position and the 6 next, and blocking walls above and below and left and right. Then repeat it every two y and place ladders at every hall not on ground (Y < Max-1) with choosing a random position in the hall and if there is a hall 2 tiles below replace the two tiles by ladders. For the enemies and chest it's simpler, I just take random position 50 times and if it's a hall and it doesn't block the dungeon I place them (after generating and placing the whole map). Well here you are, it's pretty complicated and I'm sure there are better way to do but it worked fine for the jam. If you have further questions or want the code feel free to ask, and thank you I'll do my best to make it a cool game !