• Register
Post news RSS Game develop (#2) 13.07.20

Kings0. Complete map generation, as well as the process of developing. Solutions, results, bugs...

Posted by on

I added the Kings0 game map generator.

Of course, I have not fully optimized this whole thing, but I did not notice any lags. I know what algorithms can be fixed and optimized, and I do this as much as possible. I would like to talk generally about the development process and the results.

Although a regular map consists of 100x100 blocks, this is not just a symbols, but a whole matrix of objects.
About the map file. It weighs only 100 kilobytes and this is only because there are 5 cards right there.
Yes,
the map in its initial form is a set of characters, which is converted by 4 generations and 4 more cards on top (in the file they are located below ;) ).

MapFile1

MapFile2

This type of recording and saving the map was not chosen by chance.
With it, it is possible to quickly change any part of the map and add new objects through the code itself (debug).
The generation process takes about 2 to 3 seconds (5 cards 100x100).
About 5 game cards. These are special overlays for the main map generation.
2 of them work directly with the map (map of forests and mountain landscapes).
The remaining 2 are maps of objects (cities, teams, city sizes), but in the future I will transfer them to a special database to expand functions (for example: characters, tasks for the player, and much more).

MapEditor1

MapEditor2

The generation itself turned out beautiful and works as it was intended.
The only thing that has not been completed is the last generation (smoothing the edges of the blocks).
Because of this, errors have appeared. I have already eliminated many of them in the engine code itself, but 2 still remain.
I'll give you an example if you are interested ...

MapErrors1

MapErrors2

Now everything is much better. In the very first versions, it looked something like this (October 2019)

FirstVersionBags1

and
like this (this is already about December 2019):

FirstVersionBags2

It looks very funny. ;)
As I wrote above, this is simply no longer there.
I also thought a lot about the graphic component and decided to add rivers, small lakes, islands.
And also in the future, new textures are planned (game seasons).

I think that at this moment I will interrupt my article.
At this point in time, I am working on the main window of the game engine.
It is necessary to implement more of its settings (the basic ones are already available), as well as I'm experimenting with screen resolutions.

DebugWindowSize1

Of course, I did not forget about the other aspects of the game and they will be implemented over time ...
Continuation will be in article #3 in a few days, but for now I will show the finished result of the game generation:

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

News
Related Games
Kings0
Kings0 Turn Based Strategy
Related Engines
K0 Engine
K0 Engine Commercial
Related Groups
RAD Team
RAD Team Developer & Publisher