Open MagatsuCosmo opened 9 years ago
I have written a potentially strong data definition for a calendar class, which covers for a standard month (no leap years). This can be abstracted to include weather.
init python:
class SimpleCalendar():
months = [
["January", 31],
["Februrary", 28],
["March", 31],
["April", 30],
["May", 31],
["June", 30],
["July", 31],
["August", 31],
["September", 30],
["October", 31],
["November", 30],
["December", 31]]
def __init__(self, day, month):
self.day = day
for m in self.months:
if (month == m[0]):
self.month = m
# changes the number of days based on variable 't'
def change_days(self, t):
for i in range(1, t+1):
new_day = self.day + 1
if (new_day > self.month[1]):
if (self.month == self.months[11]):
self.month = self.months[0]
else:
self.month = self.months[self.months.index(self.month) + 1]
self.day = new_day - self.day
else:
self.day += 1
We kinda need to discuss how our calendar/time system will work first before we can proceed any further. >_< more stuff to talk about next sprint planning~
Because our game going to take place in month breakdown order. We should add "Day/Month" (weather too if possible?) on to the play screen, so the player got the sense of flow of time in the game.
Idea: Having a month indicator that will changes its colour when the month change and feel like move on to different arc each time.