Devlog | M11d1d

Minimap and world map

The green in Zierikzee with the round minimap at the top right

Zierikzee is big enough now to get lost in. So the game has a map, two in fact: a round minimap at the top right that follows you, and a world map behind the M key.

Nobody drew it. A small tool makes the image from the same data the town itself is built from: the street masks for the roads, the shoreline for the water, and the house list for every one of the 2,820 houses, each in its real place. Colours come from the palette. If the town changes, you run the tool again and the map still matches. Seeing it for the first time was a nice moment, as it's unmistakably Zierikzee: the old harbour, the canals around the centre, and a dark square where the Sint-Lievensmonstertoren stands.

The maths is small enough to test on its own. One rule turns a world position into a spot on the image, with north at the top. Another knows what the view is showing, for dragging and zooming. Zooming keeps whatever is under your mouse exactly where it is, which sounds like a detail until you've used a map that doesn't.

Markers cost nothing on the network, as they only use what the client already knows. Thugs are red, gathering spots amber, the workbench is a pale square, and other players are green. The arrow points the way you're looking.

Making room for it meant moving the inventory window a little to the left, as it lived in the same corner.