X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;ds=sidebyside;f=tabakrolletjie%2Fscenes%2Fday.py;h=4c3cbfe9759c01458be1c1bcb307f4d1ca74221c;hb=a583e427c608fcae7e73e4fcd175e767fb3994be;hp=17506fd1f04e1e828667f7958e644f7b91c079e1;hpb=18f4a4bb19a0a76131f17fe51590c58a731538a1;p=tabakrolletjie.git diff --git a/tabakrolletjie/scenes/day.py b/tabakrolletjie/scenes/day.py index 17506fd..4c3cbfe 100644 --- a/tabakrolletjie/scenes/day.py +++ b/tabakrolletjie/scenes/day.py @@ -44,7 +44,6 @@ class DayScene(BaseScene): # Tools self._light_toolbar = [] self._tools = self.create_tools(gamestate) - self._infobar.update(gamestate) # Background self._soil = loader.load_image( "textures", "soil.png", transform=self.BRIGHTNESS) @@ -150,7 +149,7 @@ class DayScene(BaseScene): self._lights.render_light(surface) self._obstacles.render(surface) self._lights.render_fittings(surface) - self._infobar.render(surface) + self._infobar.render(surface, gamestate) for tool in self._tools: tool.render(surface) for light_tool in self._light_toolbar: @@ -189,7 +188,6 @@ class DayScene(BaseScene): turnip = Turnip(age=0, pos=pos, space=self._space) self._turnips.append(turnip) gamestate.seeds -= 1 - self._infobar.update(gamestate) except TurnipInvalidPosition: # TODO: Add error sound or something pass @@ -219,7 +217,6 @@ class DayScene(BaseScene): if self._lights.nearest(pos, max_distance=25): return gamestate.seeds -= cost - self._infobar.update(gamestate) cfg["position"] = pos cfg["colours"] = colours gamestate.station["lights"].append(cfg)