It took a LOT of effort, but I finally have a functioning day/night cycle.
The actual in-game time will run at about 1 second real life = 1 minute in-game. When the time reaches 17:00/18:00, the sun starts to set, and the sun rises again at 6:00/7:00.
The biggest issue I had was that the lighting system didn’t like being at low alpha levels, leaving weird artifacts or the like which would appear when the cycle turned to night again and quickly fade. So I had to dig around the internet to find some vague code that just so happened to work when I put it in the right spot. Some sort of alpha blend cancelling?
I probably sound like I have no idea what I’m doing, and yeah, that’s partially true.
Also I think this is the first time I’ve shown the whole screen! I still have to figure out what else I can put in the HUD.
Also the upper-left text is just debug text for spawning items on stage.