class Sun(Weather): color = MutateColor(255, 0, 0) def draw(self, surface): pass #pygame.draw.circle(surface, self.color, (10,10), 100 ) def affect_flowers(self, flowers): for flower in flowers: flower.photosynthesis(self)
def __init__(self, weather=None): #self.weather = weather self.weather = weather self.color = MutateColor(0, 0, 0).sequence("RRR") self.desc = "Sun - " + str(self.color)