+ self._ending = False
+
+ def create_tools(self, gamestate):
+ tools = []
+ y = SCREEN_SIZE[1] - 40
+ tools.append(ImageButton(
+ '32', 'pause.png', name='pause play',
+ pos=(SCREEN_SIZE[0] - 150, y)))
+ tools.append(ImageButton(
+ '32', 'exit.png', name='exit', pos=(SCREEN_SIZE[0] - 50, y)))
+ return tools
+
+ def add_day_button(self):
+ y = SCREEN_SIZE[1] - 40
+ self._tools.append(ImageButton(
+ '32', 'day.png', name='day', pos=(SCREEN_SIZE[0] - 200, y)))
+
+ @property
+ def turnip_count(self):
+ return len(self._turnips)
+
+ @property
+ def power_usage(self):
+ power = self._lights.total_power_usage()
+ power = power / (FPS * NIGHT_HOURS_PER_TICK)
+ return int(round(power))
+
+ def remaining_hours(self):
+ return int(round(
+ (NIGHT_LENGTH - self._total_ticks) * NIGHT_HOURS_PER_TICK))