Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics


Package GameMaker rooms and load them as you please · By YellowAfterlife

good tutorials for procedually generated stuff

A topic by ZakaliTheAvali created Aug 07, 2021 Views: 357 Replies: 3
Viewing posts 1 to 4

im looking for tutorials in general but i have been wanting to make a randomly generated/procedually generated room but i normally go baised off of tutorials for anything i dont personally understand


Tutorials vary depending on specific kind of generation that you want.

For example, if you wanted to accomplish Spelunky-like level generation, you could export levels for various patterns (side area/horizontal only/has way up/has way down/way up and down), pick a random one of those (see loading) and also have “obstacle markers” that replace themselves by random patterns (exported tiny rooms).

its more im wondering like where do i put each type of code. a very general overview tutorial that could work in many difrent level generations

Developer (1 edit) (+1)

Ultimately the extension comes down to a single function, room_pack_load_map. It has a few convenience versions (like loading from a string or from a file instead) and some functions to control the behaviour (like pushing freshly loaded items to a list so that you can keep track of them, or not loading specific types of content), but at core you call the function and it inserts the contents of a room at given position. Deciding when to call and what data to pass in is up to you.

I can look into making a tutorial or two when the work projects stop being on fire.