summaryrefslogtreecommitdiff
path: root/src/sliceitoff/game/game.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sliceitoff/game/game.py')
-rw-r--r--src/sliceitoff/game/game.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sliceitoff/game/game.py b/src/sliceitoff/game/game.py
index c6a5fe0..2ef377f 100644
--- a/src/sliceitoff/game/game.py
+++ b/src/sliceitoff/game/game.py
@@ -20,6 +20,7 @@ from .mainmenu import Mainmenu, MenuItems
from .level import Level
from .show import Show
from .initials import Initials
+from .settings import Settings
class Game:
""" This is the whole game. """
@@ -81,6 +82,13 @@ class Game:
self.display.update([menu])
return menu.selection
+ def settings(self):
+ """ settings menu where one can adjust volume for example """
+ menu = Settings()
+ while menu.active:
+ menu.update(dt = self.clock.tick())
+ self.display.update([menu])
+
def run(self):
""" This is the main loop of the game """
while True:
@@ -91,6 +99,8 @@ class Game:
self.show_highscores()
case MenuItems.INSTRUCT:
self.instructions()
+ case MenuItems.SETTINGS:
+ self.settings()
case MenuItems.NEWGAME:
self.newgame()
if self.hiscores.high_enough(self.stats.score):