projects
/
tabakrolletjie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change how infobar updates work.
[tabakrolletjie.git]
/
tabakrolletjie
/
scenes
/
day.py
diff --git
a/tabakrolletjie/scenes/day.py
b/tabakrolletjie/scenes/day.py
index 17506fd1f04e1e828667f7958e644f7b91c079e1..4c3cbfe9759c01458be1c1bcb307f4d1ca74221c 100644
(file)
--- 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)
# 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)
# 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._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:
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
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
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
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)
cfg["position"] = pos
cfg["colours"] = colours
gamestate.station["lights"].append(cfg)