Devlog | M30

Day and Night

The same spot at dawn, noon, dusk and night

My game had one time of day: a sunny afternoon that never ended.

Now the light follows the real sun over Zierikzee, the town my map is based on. It comes from the east in the morning, from high in the south at midday and from the west in the evening, and the shadows turn with it. In summer the evenings are long and the light hangs on until late; in winter the sun stays low and sets before five.

Everything changes with it: the sky, the haze in the distance, the light on characters and the ground. Dawn and dusk turn warm and orange, and at night everything goes a cool blue under moonlight, dark enough to feel like night while you can still see where you're going. Because it all comes from the server's clock, everyone in the world sees the same sky at the same time.

My first version read the time from your own computer, so a computer with the wrong clock got a different sky from everyone else, and it ignored the world's timezone too. Now the server tells every player its clock when they come in, and again every minute.

Street lamps and lit windows are for when the town is back.