top of page

Unity mobile

Testing Unity on mobile, exported to Android.

​

Incorporates Singletons, Encapsulation, Inheritance, Polymorphism, Single Responsibility Principles, and Interfaces.

​

Integrates 3rd party services.

GitHub-Mark-32px.png

Within the level are assets for both day time and night time. A real time daylight value is being derived by retrieving the sunrise and sunset values from openweathermap.org. A float for the current day light value is being derived by normalizing the current time between these two values.

​

To prevent the daylight float being set once the sun has gone down, the function only works if the current time is between sunrise and sunset.

sun1.jpg

This value is then synced to the opacity scale of the "day time" assets, ascending until midday, descending until sunset.

sun4.jpg
day.jpg
night.jpg
bottom of page