I'm trying to do my first c++/sfml game.
I love RISK/Total War type games so I thought to do a simple war game based in Europe. So I want a map of europe made up of individual images of each region...so when one side captured a region, I can easily change the colour of that region etc.
So I've got a png for each region.
For example
here is North Spain
Here is South Spain
Here is west Spain/Portugal
Here is what I want displayed on the screen, i.e. all 3 regions aligned up correctly.
So now I'm trying to figure out how to display them all in the correct places, so they look like a real map of europe.
My thinking here was to use a tile map system which would be configured via a text file., i.e. each image = a rectangle with no background colour outside of the borders of each region. Tile-map and image file dimensions are equal in width/length.
My concern is how to align up each image so that they fit nicely, i.e. say for the spain/portugal region, my txt file would be as below. The number would be the region id (each region has the image file as a field). Then I would draw the image file at the location of the tilemap.
1 = North Spain, 2 = portugal, 3 - south Spain.
x,1
2,3
The N Spain (region 1) image file contains the part of the region that should cover the top of Portugal. But if I program something like above then how can I avoid portugal "sticking out" by 100 pixels to the left of N Spain?