So I want to make a function in my game where when it is night time in real life the background will change to a different night time background and viceversa for daytime. How would I test for night/day time?
Develop games in your browser. Powerful, performant & highly capable.
This might help. So that you can get the date and time.