Here, procedurally generated map and full random.
Red is the maximum population density and Yellow the minimum population density.
Next a completely random generated map to fill any gaps between the various procedural generations.
...the world is small... (for now!)
I can use this for industrial zones
I try a new procedural generation now
This is a destiny sign....
Right side
Upside
Left side
Side below
I change matrix map with SFML
I discovered a base problem at start matrix...
I need to remove the square
TEMPORARY ALPHA MENU!!!!
01/30/2023
I'm looking for the yellow bug in the rim...
01/30/2023
I found the bug... undersized array values from loops. It is not density related yellow pixel, these yellow pixels belong to random map generation. I will slice the two generation now. I set green matrix value 10
ALPHA TESTER GO AHEAD!!
02/03/2023.....ok we have the same bug... red now!
02/03/2023 ok map free bug!!! let's solve the map shape and the south of city map now
02/04/2023 Midnight: I'm researching the south map problem...
... and I dicovered another bug... but that is a... "Phantom Bug"
I fix city south blur bug and the phantom menace...
02/05/2023 1:00 AM I heard a Werewolf but... I will enjoy to try as new city forms as I can...
I want to think an city exterior where monsters like the "Rancor" or much more dangerous like the Dinosaurs live. So I'm going to set the matrix border green. JUNGLE!!!!!
I discovered who the blur parameters can change the city form itself...
(why my cat press all time "00000000000000000" ???)
omg...
I was trying to increase the matrix size but...
this is a Dinosaur scratch!! (or Cat's?)
ok I forgotten to compile menu3.cpp for SFML graphic:
g++ -c world.h
g++ -c world.cpp (map matrix generator)
g++ -c menu3.h
g++ -c menu3.cpp (view the map with SFML graphics)
New sizes new bug!
File: World.h [define ELEMENTS 70]
very bad :D
but I will fix all! (I hope) 02/09/2023
I need new "for" construct to check all matrix cells and work the differences in level too conspicuous and another "for" costructor to cut these long branches
02/10/2023
I will check all matrix value to delete the small islands now... Terminal:$ vim world.cpp
02/19/2023
I wasted a lot of time trying to delete islands, but the bug was simple... I go too fast and fall in stupids error:
The "for" cycle had too cycles and it overwrite the matrix value and trigger strange calculate.
I have discovered this through useless traps which didn't work...
The cage!
Random traps triggered. I set value != 1; so you can see the trigger and the path
without traps...the bug free fly
Insect anatomy
Clues: Matrix error in City north
Radius too big for the matrix
We need to fix this now... I expect another stupid error in the loop... I go search!
03/01/2023 Coming soon: "The End of the Carboniferous period"
I need to rotate the map to avoid the same slanted shapes on the bottom left,
but I will show the parameters who will be inserted into seed function (function arguments)
examples:
I could easily remove the green islands but this way it looks authentic.
I have solved the bottom left map problem and I did other tests:
Here the map bottom left is ok and below I will explain how it was done.
I will try to recover the map with "square effect"
but it was related to bugs and incorrect code.
It was nice to see them without bugs.
03/16/2023
Function world_generate:
The first four numbers are for the City size, after there are couples of numbers who point the first and second procedure parameter.
Those all is only the base city map, we could do much more (I could do much more...) but I go on now.
I close this section for the moment. 03/17/2023
I thank the Commodore64 and him game "Creatures"
for pulling me into the stream through this music.
And remember: if you were to see a phantom menace... Don't Cross The Streams!