I'm using a very simple way to determine where the program has to add doors. Just check the neighbors, as always with a for loop. Of course, where there is no room, we don't do the check. If it finds neighbors, it has to mark, where the doorways are.
I will use an array of booleans instead of one integer. The array will have 4 elements with 16 different possibilities / combinations. It will work as I wanted to do first time. But different elements will mark different doors. [1,1,0,1] means there will be door all the sides except the eastern side.
1 = true
0 = false
I won't have time to continue this project in the following days, I have to create some 3D models for an other projects, which will be exciting too. So, guys from the team, I didn't forget about you!
PS.: I'll will have one more post very soon, I have a little material in it which is not mine, I would like to get permit to show it. Nothing special, just some textures. Maybe, I should simple post it without consequences.
No comments :
Post a Comment