So I want to implement a time system in my game.
There are three elements to this system:
1. Day of the week: Monday to Sunday
2. Time of day: Morning and Evening
3. A day count since beginning of the game
I will have two buttons in the game:
1. "pass time" which advances Morning to Evening
2. 'Sleep' which advances a day, logically advancing the day of the week.
I've already setup:
<<set $weekDays=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]>>
and
<<set $dayTimes=["Morning", "Evening"]>>
So:
1. How do I implement the two buttons to do as I intend?
2. How do I display this information?
I assume I'll need three variables, $day, $timeOfDay, $dayCount. How do I set them up?