Files
  • main.py
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Importing important modules
from time import sleep
from sys import stdout
from replit import clear as c
from replit import clear
from colors import red, green
from random import randint

# Defining important variables
TITLE_TEXT = """
        ,----,                                                                                
      ,/   .`|                                       ____                                     
    ,`   .'  :  ,---,                              ,'  , `.                                   
  ;    ;     /,--.' |                           ,-+-,.' _ |                                   
.'___,/    ,' |  |  :                        ,-+-. ;   , ||                                   
|    :     |  :  :  :                       ,--.'|'   |  ;|                                   
;    |.';  ;  :  |  |,--.   ,---.          |   |  ,', |  ':  ,--.--.        .--,   ,--.--.    
`----'  |  |  |  :  '   |  /     \         |   | /  | |  || /       \     /_ ./|  /       \   
    '   :  ;  |  |   /' : /    /  |        '   | :  | :  |,.--.  .-. | , ' , ' : .--.  .-. |  
    |   |  '  '  :  | | |.    ' / |        ;   . |  ; |--'  \__\/: . ./___/ \: |  \__\/: . .  
    '   :  |  |  |  ' | :'   ;   /|        |   : |  | ,     ," .--.; | .  \  ' |  ," .--.; |  
    ;   |.'   |  :  :_:,''   |  / |        |   : '  |/     /  /  ,.  |  \  ;   : /  /  ,.  |  
    '---'     |  | ,'    |   :    |        ;   | |`-'     ;  :   .'   \  \  \  ;;  :   .'   \ 
              `--''       \   \  /         |   ;/         |  ,     .-./   :  \  \  ,     .-./ 
                           `----'          '---'           `--`---'        \  ' ;`--`---'     
                                                                            `--`                 
"""
COLORS = {
  'reset': '\033[0m',
  'bold': '\033[1m',
  'underline': '\033[4m',
  'black': '\u001b[30m',
  'red': '\u001b[31m',
  'green': '\u001b[32m',
  'yellow': '\u001b[33m',
  'blue': '\u001b[34m',
  'magenta': '\u001b[35m',
  'cyan': '\u001b[36m',
  'white': '\u001b[37m',
  'lightblue': '\u001b[34;1m'
}

# Defining important functions
def color(text, color, *extras):
  if not extras:
    return COLORS[color] + text + COLORS['reset']
  pretext = COLORS[color]
  for extra in extras:
    pretext += COLORS[extra]
  return pretext + text + COLORS['reset']

def inp():
  return input(color('> ', 'lightblue'))

def write(string):
  for char in string:
    stdout.write(char)
    stdout.flush()
    sleep(.08)
  stdout.write('\n')

# Introduction to game
print(color(TITLE_TEXT, 'yellow', 'bold'))
print('\n\n\n' + color('Press enter to start...', 'cyan'))

input()
sleep(.5)
c()

for i in range(3):
  print("Loading")
  sleep(.3)
  c()
  print("Loading.")
  sleep(.3)
  c()
  print("Loading..")
  sleep(.3)
  c()
  print("Loading...")
  sleep(.3)
  c()

print(color("Loaded", 'green'))
sleep(1)
c()
write('Welcome, adventurers! Welcome to THE MAYAS.')
sleep(1)
write('\nGame Objective:')
write('\t1.' + green(' Invade') +  ' Maya city of ' + color('Chichén Itzá', 'red') + '.') 
write('\t2.' + green(' Steal') + ' the protected ' + color('calendar', 'red') + '.')
write('\t3.' +  green(' Evactuate ') + 'Chichén Itzá without getting caught.')

write('\nEnter username:')
name = inp()
write('Hello ' + name + ', are you ready to start? y/n ')
start = inp()
c()

write('You are in the year of 2048, You are meeting some of the best scientists in the world. They tell you that they have found out how to time travel! They say that they will pay you millions of dollars if you go back in time to steal the greatest achivement of the Mayans: the calendar.')

write(color("\nYou: Why steal a caledar?",'blue'))

write(color("\nScientist: The Myan calendar was the most important artifact that the Myan civilization left behind. ",'red'))

write(color("\nYou: What about the amazing articecture of the Mayas? ",'blue'))

write(color("\nScientist: First of all, would you like to steal a building. Second of all, the mayan calandar was better than the archetecture or number system or anything else the Mayans created. This is because no other civilization had developed a calandar so as complex as the Mayans. While some other civilizations have created better archetecture.",'red'))

write(color("\nYou: What about the number system?",'blue'))

write(color("\nScientist: The number system was great but other pre-industrial civilizations had created number systems like that. Such as the roman numerals.",'red'))

write(color("\nYou: Ok, then. How do I steal it?  ",'blue'))

write(color("\nScientist: Ok, first you need to go to Chichen Itza, then you have to find the Maya Pyrimid    ",'red'))

write(color("\nYou: Horrible idea",'blue'))

write(color("\nScientist: ",'red'))