I'm looking for some wise tips concerning a specific game development : Bomberman-like.
I am currently implementing a "random map" generation for the game, but I feel like I'm not doing in the best way :
- I have a vector of Objects (fresh class having a type (like a Border, a Destructible Wall, a Bomb, a Player...) and two size_t for (x, y) coords) that I initialize when I create a map.
- I generate Borders all around my Map that will define the game area.
This is the "I don't like that" part :
- I generate some Unbreakable/Breakable Walls using random coords : if at these coords there is nothing but an empty space, I put a Wall there. So that the map is filled with a certain percentage of walls.
Do you have any ideas of how to generate a Map with Walls properly, or using a certain algorithm ? I looked for a Maze Generation Algorithm but I don't have a very good feeling with this.
Thank you for your help and have a great day !