I have created a procedural city generator (almost?) and am ready to present to you...
...algorithm for creating roads
For those who do not know what Zeta is: https://www.reddit.com/r/projectzomboid/comments/1cwny9r/i_created_a_map_generator_or_lets_play_carcassonne/
Hi all. You probably thought that I was hopelessly lost and failed in my task. But it's not like that. My long absence was due to the fact that my small business takes up a lot of my time... I also needed to think more about algorithms and the like...
In general, one way or another we continue to work on the project. Why "we"? Let me tell you: I took a person with the nickname Azakaela to my team. She took full charge of the "style" of buildings, roads and other structures. And now I am completely involved in the internal part of the program
What's new? Azakaela suggested a good idea: to work with smaller structures inside our cells 300 by 300. In other words, I thought about this myself, but did not expect that this could be realized. As it turned out, it is possible. And the Zeta code was well suited to this
Now I will talk a little about my plans for how generation will be arranged in Zeta. First we will generate a certain number of cities (more on this later). After this we will place cities in the game world. And then we will connect Zeta scripts so that it “completes” the world. That is, part of the program with roads remains the same at the moment, but cities will be generated differently. let's discuss
In my photos you can see strange blue grids. These blue grids represent roads. I wrote a script that generates a road map of small cities. If you look at the cities in the game, then one way or another you will notice that all the roads are “rectangles”. I took this as the basis for the algorithm and implemented it
I think it's like a full city. The algorithm is already ready and fully working, all that remains is to transfer it to the Zeta engine. It will take time (we will need to work with districts and all that), but somehow we are making progress. Not true?
Share your opinion, ask questions! Love everyone