tools.append(tool)
x += step
- # TODO: will also add back to menu button
tools.append(ImageButton(
- '32', 'night.png', name='start night', pos=(SCREEN_SIZE[0] - 50, y)))
+ '32', 'night.png', name='start night', pos=(SCREEN_SIZE[0] - 100, y)))
+ tools.append(ImageButton(
+ '32', 'exit.png', name='exit', pos=(SCREEN_SIZE[0] - 50, y)))
return tools
def exit(self, gamestate):
elif tool.name == 'start night':
from .night import NightScene
SceneChangeEvent.post(scene=NightScene())
+ elif tool.name == 'exit':
+ from .menu import MenuScene
+ SceneChangeEvent.post(scene=MenuScene())
else:
self._tool = tool
if self._tool.name == 'seed':