V
V
Vladimir Grabko2016-07-19 19:00:08
Game development
Vladimir Grabko, 2016-07-19 19:00:08

How to properly store a card?

My map is divided into 50x50 squares, it can have a type (landscape) and a slice that stores what elements on this cell. The map is "dimensionless" (in all directions). What is the best way to generate it at all? I suppose records of each cell are stored in mysql, but I suspect that there will be billions of cells and I am afraid that there will be huge problems with storage.
I don't express my thoughts clearly. On this I will repeat the questions.
What is the best way to generate a map (analogous to a map in civilization3)?
What is the best way to store data about each cell on the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Entelis, 2016-07-19
@VGrabko

Common sense:
How to generate:
Write a function that generates data based on coordinates and some seed.
It is important that the data changes when the seed is changed and does not change when it is called again with the same seed.
How to store:
No way. You don't need to store the entire map. It is necessary to store the seed and changes on the map from the default (if they are even possible according to the mechanics of the
game )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question