Making a simple time-of-day system. In the process I learned that the tilt of th...

@runevision@mastodon.gamedev.place

Making a simple time-of-day system.

In the process I learned that the tilt of the lunar orbit is around 5 degrees, and that the axis it tilts around rotates in an 18.6 year cycle (nodal precession), which is why the two times of year eclipses can happen drift from year to year.

Crucially, time-of-day, time-of-year, and lunar phase can all operate independently so I can e.g. make my game occur in an eternal summer, or make the season location-specific.
#GameDev #IndieDev