akien-mga / dynadungeons

Bomberman clone using Godot Engine - Not actively developed since 2015.
GNU General Public License v3.0
217 stars 37 forks source link

Populate levels randomly #17

Open akien-mga opened 9 years ago

akien-mga commented 9 years ago

I'll have to check again how it was done in Bomberman, but my initial idea would be to let the user define the level height and width, and then create it automatically by:

For future levels where there might be characteristic interactive elements, those could also be referenced with relative position (center tiles, 20% of the level width to the left and right, etc.) to be placed and generate exclusion zones.

Another approach would be to intervert steps 3 and 4, and just clean the exclusion zones afterwards.

bojidar-bg commented 9 years ago

BTW, in bombermine they have some 10x10 (or some other size, who knows...) pre-made presets, and then they just use them to make the level. :bomb: