I'm beginning work on a roguelike, and this is my level generator.
Wall tiles don't look quite right in windowed mode.
WASD = move.
R = generate new level.
F = toggle fullscreen.
T = toggle debug (doesn't do much).
ESC = quit.
Have fun.
A random level generator thing
A random level generator thing
four years later and i hate remembering the posts i made on here exist but i can't delete any of them or my account
sorry you had to read this
sorry you had to read this
Re: A random level generator thing
Looking good!
(feels more like the interface to an action game than a traditional roguelike but maybe that's what you're aiming for)
(feels more like the interface to an action game than a traditional roguelike but maybe that's what you're aiming for)
Re: A random level generator thing
I'm kinda basing it off Nuclear Throne, which isn't really a traditional roguelike, so it would make sense if it didn't feel like one.mr_happy wrote:Looking good!
(feels more like the interface to an action game than a traditional roguelike but maybe that's what you're aiming for)
four years later and i hate remembering the posts i made on here exist but i can't delete any of them or my account
sorry you had to read this
sorry you had to read this
Re: A random level generator thing
Cool generator! It seems to make consistently good areas. What sort of algorithm does it use?
Re: A random level generator thing
Wow that looks good!
I looked at the function where you generate the level because I was curious, I didn't expect it to be that short. Good job
I looked at the function where you generate the level because I was curious, I didn't expect it to be that short. Good job
Re: A random level generator thing
That generator algorithm is very strange but also efficient. I expected to find marching squares algorithm when I checked the code.
Re: A random level generator thing
Basically it has some tables, one for floor x values and floor x values. It has a sort of "cursor" (might not be the best word but idk/c) and every loop it moves the cursor x either left 1, right 1, or stays. It does the same with the y. It also adds three more squares, (x + 1, y), (x, y + 1), and (x + 1, y + 1). Each (x,y) pair in these tables are a floor space. There's also a table for which image each tile uses.Nuthen224 wrote:Cool generator! It seems to make consistently good areas. What sort of algorithm does it use?
Thanks.rgzk wrote:Wow that looks good!
I looked at the function where you generate the level because I was curious, I didn't expect it to be that short. Good job
Oddity and efficiency often go hand in hand.whitebear wrote:That generator algorithm is very strange but also efficient. I expected to find marching squares algorithm when I checked the code.
four years later and i hate remembering the posts i made on here exist but i can't delete any of them or my account
sorry you had to read this
sorry you had to read this
Who is online
Users browsing this forum: No registered users and 8 guests