This is a shadow simulation where you can put in an obstruction, and the sun is calculated using the inbuilt scratch time to calculate the suns position per hour relative to 0 0 (PLEASE NOTE THAT THIS IS NOT COMPLETELY ACCURATE AND IS PURELY FOR DEMONSTRATIVE PURPOSES) Also does not simulate nighttime, or the day getting darker.
Sun calculation (360 degrees - 24 hours - Current hour) Shadows will update when sun position changes but can be updated by pressing 1, which modifies the "current dir" variable which tells the sun if the direction is the same as earlier, if so, no update is called, but if it is diffrent, then an update is called. This is done to prevent a lot of unnesscary lagging.