Cutting holes in polygons (2D)

All for you

@SandpitSam, because I cannot help myself I made a fully interactive map for you, based on scalable vector graphics.

You can download it here from my codeberg page:

(just like github, you can get a zip here)

More explaining

This video illustrates how you can use it and how it was made:

Making a new map

You’ll be wanting to make your own map, in order to make the script work out the box you need to keep one thing in mind:

The SVG file has to have one <g> (group node) per country and the groups should not be nested. Also the group node’s label is used to apply the name.

This you can see best do in the inkscape editor. The end of the youtube video I shared in this reply shows you how.

You can also delete the entire addon after doing the import. Because the scene contains all the polygons as well, you can even delete the svg image file from the assets you ship in your game.