-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
52 lines (43 loc) · 1.5 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from levels.Level0 import level0
from simple_console_menu import Menu
from rich import console
import os
console = console.Console()
healthFile = open("./profileData/health.txt", "w")
healthFile.write("100")
healthFile.close()
noclipFile = open("./profileData/noclip.txt", "w")
noclipFile.write("3")
noclipFile.close()
nameFile = open("./profileData/name.txt", "w")
ageFile = open("./profileData/age.txt", "w")
almondFile = open("./profileData/almondWater.txt", "w")
almondFile.write("0")
almondFile.close()
while True:
options = Menu.SimpleConsoleMenuBlock('Options:', [
"Start Game",
"Enter Name and Age",
"View Credits",
"Exit"], "Option: ", 76)
if options == 1:
level0()
exit()
elif options == 2:
name = input("Please enter your name: ")
nameFile.write(name)
nameFile.close()
age = input("Please enter your age: ")
ageFile.write(age)
ageFile.close()
os.system('cls')
elif options == 3:
console.print(
"Credits: [bold red]Lead Programmer:\n[/bold red] [bold blue]Jacob Wiltshire[/bold blue]\n\n[bold "
"pink]Mental support:\n[/bold pink][bold yellow]Luc Smith\nHenry Smith\nMr Brown\nMr Veli\nKaleb "
"Hirshfield\nThomas Hawkins\nLouisa Safo\nFin Stevens\nLucas Done\nMy Parents and Family\n\n and"
"you for playing the game![/bold yellow]\n")
input("Press enter to continue...")
os.system('cls')
elif options == 4:
exit()