S
Simulacron
Guest
I'm working on a game, where the level gets randomly generated out of little room tpyes like cooridors, normal rooms, staircases, etc. These are all in one gamemaker room. My level generation works so far, but at the moment I just use one sprite for each room, just to see if the level generation is working. Now I want to replace this sprite with a room, build out of multiple objects, but it would be very long-winded to code each room (f.ex. saying that at pos 0,0 obj_wall gets created, at pos 0,1 another wall,...) Is there a faster way of doing this? Can I somehow save room layouts in a data-type or could I use an image, where each pixel stands for an object and the color detemines which object gets created?
Thanks in advanced!
Thanks in advanced!