Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit) (+1)

Hey I liked the funky atomsphere and cool getting the procedural generation working

Do you have any resources you'd reccomend for that? or learnings you could share?

(+1)

thanks for the comment! :)

for the proc-gen, i watched some youtube tutorials that came up when searching for "godot procedural generation". the "walker" approach felt interesting for what i had in mind, and then i ended up sort of creating my own, wonky, janky thing.

clearly not the most efficient way, but what i did: each room is an instance of its own, room template scene (which has its own tilemap, with floor and walls and doors (hidden by default). i then have a map scene, with its own tilemap, but this one is never displayed, it just serves to keep track of where rooms are. the code then generates "room 0", looks for the four potential movement directions to see if the path is open, choses one randomly, adds a room there, and connects the two rooms together. you then repeat the same process from that new room, and so on. i had a path_length variable that allowed to control how many rooms i wanted per level, in total, and then, some rooms could become an "end of corridor" room, and it restarted from the first "room 0", to have separate branches.

or something along those lines... haha.

(+1)

Thanks for the detailed reply - I'll be looking into to using that for a future game :)