-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame.py
executable file
·44 lines (33 loc) · 1.48 KB
/
Game.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
from src import Player
from src import Item
def initializeGame(): #Incase you want to initialize more than the player at startup
mainGuy = Player.Player(1000, 200, 10, 10,[])
return mainGuy
def Play():
initializeGame()
print("There is a story to be told here, but you wont hear it because it hasn't been written. \n \t \t Press Enter to Continue")
input("> ")
Clear()
print("Boo")
def Clear():
print("\033[H\033[J")
def Menu():
Clear()
print("""
88 88
,d 88 88
88 88 88
,adPPYba, MM88MMM ,adPPYYba, 88 88 ,d8 ,adPPYba, 8b,dPPYba,
I8[ "" 88 "" `Y8 88 88 ,a8" a8P_____88 88P' "Y8
`"Y8ba, 88 ,adPPPPP88 88 8888[ 8PP""""""" 88
aa ]8I 88, 88, ,88 88 88`"Yba, "8b, ,aa 88
`"YbbdP"' "Y888 `"8bbdP"Y8 88 88 `Y8a `"Ybbd8"' 88
(The b̵a̵d̵l̵y̵ well made text game)
1) Start
2) Quit""")
options = [Play,exit]
Choice="x"
while (not (Choice.isnumeric() and int(Choice) <= len(options) and int(Choice)>0)):
Choice = input("> ")
options[int(Choice)-1]()
Menu()