Make game possible to quit (runs in CATDOS now)
This commit is contained in:
8
game.py
8
game.py
@@ -47,7 +47,11 @@ class Game:
|
|||||||
"Settings",
|
"Settings",
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
options[0:0] = ["Save"]
|
options[0:0] = [
|
||||||
|
"Save",
|
||||||
|
"Save and quit",
|
||||||
|
"Quit",
|
||||||
|
]
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
match ui.select(
|
match ui.select(
|
||||||
@@ -188,7 +192,7 @@ class Game:
|
|||||||
or os.path.exists("WEB_VERSION")
|
or os.path.exists("WEB_VERSION")
|
||||||
):
|
):
|
||||||
options.insert(0, "Load Game")
|
options.insert(0, "Load Game")
|
||||||
if not os.path.exists("WEB_VERSION"):
|
if True: # not os.path.exists("WEB_VERSION"):
|
||||||
options.append("Quit")
|
options.append("Quit")
|
||||||
print(f"Welcome to {data.text.GAME_NAME}")
|
print(f"Welcome to {data.text.GAME_NAME}")
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user