This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'd like to illustrate how I've planned to code a grand strategy map so far, and below to write about what I'm stuck on.
I would start with a blank political map(I would overlay it with maps of relief, rainfall etc.)
I would flood fill all the white areas till the borders to discern entire area of a country
I would end up with select-able and colour-able gameobjects. Their data would be manually input in a text file.(I.E. First flood filled="Ireland", 4.784m, ...; Second flood filled="N.Ireland..." )
My game would need to feature country unification, and thus the removal of borders.
I would intersect the outermost pixels of a country with the outermost pixels of a neighboring country to determine the border(border is whatever black is found under the intersection).
Border is removed, the area is flood filled again under a new predetermined name, and the rest of the data being a combination of the previous countries' data.
I don't know what to do when it comes to saving/loading games. So far the only thing I could think of is to create a blank political map without the new borders as a part of the save file which would be used instead of the original blank political map when the player loads the save. This kind of image saving seems to me like it would be finicky at best.
If you have any opinions or advice on how to do the saving/loading, on better ways about coding a grand strategy game, or any handy plugins, assets, libraries that concern this kind of a game, then please leave a reply. Any kind of input would be greatly appreciated.
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Unity3D/com...