A realtime day/night cycle which adjusts according to your computer's time. Dawn occurs at 06:00 and finishes at 09:00. Dusk occurs at 18:00 and finishes at 21:00. At any other time it is either day or night.
Last attempt was broken but this time it works! I think Press space to hide/view variables. This project works by gradually changing a 'fade' variable over three hours, which determines the visibility of a nighttime sprite. Feel free to use I think I explained things well enough An entire day has 86,400 seconds in it