You are on page 1of 2

import mine

import explore
import sleep
import inventory
import consume
import json
from termcolor import colored
def intro():
l1= " _ _ _ _
_ _ _ _ _ _
_ "
l2= " /\ \ /\ \ /\ \ _ /\ \
/\ \ _\ \ /\_\/\_\ _ /\ \ /\ \ _
/\ \ "
l3= " / \ \ / \ \ / \ \ /\_\ / \ \
/ \ \ /\__ \ / / / / //\_\ \ \ \ / \ \ /\_\
/ \ \ "
l4= " / /\ \ \ / /\ \ \ / /\ \ \_/ / / __/ /\ \ \
/ /\ \ \ / /_ \_\ /\ \/ \ \/ / / /\ \_\ / /\ \ \_/ / /
/ /\ \ \ "
l5= " / / /\ \ \ / / /\ \ \ / / /\ \___/ / /___/ /\ \ \
/ / /\ \ \ / / /\/_/ / \____\__/ / / /\/_/ / / /\ \___/ /
/ / /\ \_\ "
l6= " / / / \ \_\ / / / \ \_\ / / / \/____/ \___\/ / / /
/ / / \ \_\ / / / / /\/________/ / / / / / / \/____/
/ /_/_ \/_/ "
l7= " / / /
\/_/ / / / / / / / / / / / / / / / / / / / / / / /
/ / / /\/_// / / / / / / / / / / / / /____/\ "
l8= " / / / / / / / / / / / / / / / / / / _ /
/ / / / / / / / ____ / / / / / / / / / / / / / / /
/ /\____\/ "
l9= " / / /________ / / /___/ / / / / / / / / \ \ \__/\
_\ / / /___/ / / / /_/_/ ___/\ / / / / / / ___/ /
/__ / / / / / / / / /______ "
l10="/ / /_________\ / / /____\/ / / / / / / / \ \___\/ / / /
/____\/ / /_______/\__\/ \/_/ / / / /\__\/_/___\ / / / / / /
/ / /_______\ "
l11="\/____________/ \/_________/ \/_/ \/_/ \/___/_/
\/_________/ \_______\/ \/_/ \/_________/ \/_/ \/_/
\/__________/ "
l1=colored(l1, 'red')
l2=colored(l2, 'yellow')
l3=colored(l3, 'green')
l4=colored(l4, 'cyan')
l5=colored(l5, 'blue')
l6=colored(l6, 'magenta')
l7=colored(l7, 'red')
l8=colored(l8, 'yellow')
l9=colored(l9, 'green')
l10=colored(l10, 'cyan')
l11=colored(l11, 'blue')
l=[l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11]
w=""
for i in range(11):
w += l[i] + "\n"
return w
while True:
print(intro())
print('What do you want to do?')
print('0. See Stats')
print('1. Mine')
print('2. Explore')
print('3. Sleep')
print('4. See Inventory')
print('5. Open Chest')
print('6. Consume')
print('7. Exit')
choice = int(input('Choice: '))
if choice == 0:
with open('stats.json') as f:
data = json.load(f)
print('Stats:')
print(f'Health: {data["health"]}')
print(f'Level: {data["level"]}')
print(f'Strength: {data["strength"]}')
print('Inventory: {}'.format(json.dumps(data['inv'], indent=4)))
elif choice == 1:
mine.mineStone()
elif choice == 2:
explore.exploreWorld()
elif choice == 3:
sleep.rest()
elif choice == 4:
inventory.seeInventory()
elif choice == 5:
inventory.openChest()
elif choice == 6:
consume.consumeItem()
elif choice == 7:
print('Exiting...')
break

# Status : Finished
# Improvements : None
# Made by : @barathrajkb
# Launcher Version : 1.0.0
# Mine Version : 1.0.0
# Explore Version : 1.0.0
# Sleep Version : 1.0.0
# Inventory Version : 1.0.0
# Consume Version : 1.0.0
# Made with : Python 3.9.1 & JSON

You might also like