1,711 reputation
1227
bio website pekalicious.com
location New York, United States
age 30
visits member for 3 years, 9 months
seen Apr 13 at 20:35

I love solving problems; even if there is none, I pretend I'm solving one anyway.

Twitter - LinkedIn


Jan
27
comment Procedural… house with rooms generator
yeah, I was hoping that I was missing something. My first approach was with using A* to figure out how to fit the rooms in a given space, but it was lacking logic for the halls. Now I am thinking that I can use BSP to place halls, and then use A* to the blocks. The thing I'm mostly worried about is that it might be too expensive and not always produce a result. But I'll have to test this first. Maybe it won't be as bad?
Jan
27
revised Procedural… house with rooms generator
edited body
Jan
27
revised Procedural… house with rooms generator
added 222 characters in body
Jan
27
comment Procedural… house with rooms generator
That's where my research resulted, in space partitioning. Your example with code gave me a very very good start. I'm currently reading on algorithms. One question though: one of my requirements is that rooms are predefined (i.e. there are 2x2 rooms with one door, 1x1 with two doors, but no 2x2 with three doors), so I cannot start partitioning and then decide on where I will place doors. I think I have to keep in mind my limitations while I'm partitioning. Do you have a suggest for how I would go about this? In any case, thank you very much for your answer and effort!
Jan
23
awarded  Nice Question
Jan
23
revised Procedural… house with rooms generator
edited body
Jan
23
revised Procedural… house with rooms generator
added 76 characters in body
Jan
23
revised Procedural… house with rooms generator
added 287 characters in body
Jan
23
asked Procedural… house with rooms generator
Jan
2
awarded  Necromancer
Dec
30
awarded  Popular Question
Dec
25
awarded  Taxonomist
Dec
3
awarded  Popular Question
Jul
19
awarded  Notable Question
Jul
14
awarded  Yearling
Jun
8
awarded  Caucus
Apr
15
awarded  Necromancer
Dec
16
awarded  Nice Question
Dec
1
answered How to Effectively Create Bullet Patterns
Oct
19
comment How do I organize my game into multiple classes in C#?
Could you maybe be more clear about the difference between Input and InputHandler? Maybe show some pseudocode. This seems very interesting.