Map_Sector

You can see the first cursor meanwhile...
ok ok... half cursor...
but It will destroy your keyboard in every case...
is a good cursor therefore, didn't it?



These are functions of SFML library: SetOutlineColor(sf::color::var) and SetOutlineThickness(float x);

This Cursor outline is extern the shape(our big pixel), so we need to worry about the draw direction.
In the SFML library the last drawing is an atop level, and you can see the direction draw in this function: world_zone is the variable Name for the SFML library, It is required for graphical display (file menu3.cpp)
I will load it in Source_code section This is a fragment of file "grafica_SFML.cpp"(graphics_SFML) who is the main file for the game graphical display
It will be uploaded soon in Source_code section.
OK THE CURSOR NOW !!!
but first...

The clumsy attempts!








And







a Paolo Torelli Group Production







presents











Directed by Compsognathus








The (sad) End



I had resize the map pixel: the image origin in SFML is the top left, like you can see below







Cursor 1.0








We must to press this now:


04/09/2023

Let's start with building the vertical roads...
New file: map_sector.cpp

and I will try to print in monitor now;




I'm back... but ... what is this?

-Message from the server:

*You have just been killed by a Tsunami!*



Don't worry...this catastrophe has a 0.0001% chance of happening.
Press Return now!







I had to modify some lines, I'll explain everything:

To print this matrix with SFML graphic is simple:
New File: menu_map_sector.cpp



I know it friend, don't worry...





Horizontal roads




I have to fix the sector border roads now.








this way is better
We should resize the shapes for create the oblique roads but
I'm not sure I want to do that right now.




05/19/2023
I found the solution:
I will make the map 1.01 to use with low parameters like 1,1,1,1.
It will generate a very small City so I can make fast work.
The map 1.01 won't add new system procedural but just a city with handful of pixel for my programming trying
Next I will resize the shapes matrix in map sector and I will build the oblique roads





05/29/2023
File:world.cpp


I'm thinking about merging the two files (world.cpp and map_sector.cpp) or creating inheritance(c++) between two classes,
but maybe it's too early to figure it out.(Remember you! I'm stupid!)
I will have to insert a new array in the matrix to insert the information in each pixel.
05/30/2023 ...what? no no... I will write a numeric code in each matrix cell to insert information in each pixel/shape

(I will create a map generator management window soon)










I need a matrix [70][70][350][350] for a good simulation in map sectors
I scaled the shapes from 10 to 2 in the SFML graphics


06/08/2023 I've had problems with the matrix: my old RAM memory modules have no free continuous cells for this big array.
The problem persists even destroying sic_mundus_creatus_est matrix.
There were weird errors compiling (The infamous "segmentation fault") and I wasted a lot of time.
This new file should be the confirm:

This is a test matrix: I have dynamically allocated memory for the array
and this is the maximum size (map[10][10][350][350]) my RAM memory modules allow to write.
I will find a solution.



06/11/2023 I temporarily turned off procedural world generation and changed the map sector matrix.




Let's give a bigger dimension to the streets now.



Sorry but I have been busy watching The Bad Batch 2


I will take the code of AI for movement to create oblique roads, if I waste a lot of time, I'll go on without them.



Im back 06/21/2023


We have the first test


Sorry for the italian language but this was a fragment of code used for the movement.
I will clean as soon as possible.


New look in my Vim



Fantastic!(I'm trying angle>45)

I finally fixed the code... I will show the error tomorrow or later ... an hour to find it. Good night!

Ok I have been fighting together Mace Windu in Haruun Kal JUNGLE versus Kar Vastor since 6th July and I forgot the error now...

The coordinates new_x and new_y belong to the first point and new_x1 and new_y1 belong to the second point

07/23/2023
ok, the error was the increment of x, which adds itself to each cycle
I am fixing the code to read it better...
everything should work now (I will test) :










OK JOHN?!












I'm thinking how to build houses.(and I'm reading "Fairy Tale" S.King That's great!!!)






CLOSED SECTION---NEW SECTION PREVIEW!