changes newgame

fruitual
joak 2 years ago
parent a45c89aa80
commit 0c2b250adf

@ -5,7 +5,7 @@
import os , time , random import os , time , random
# current (saved) state # current (saved) state
currentRoom = "milky way" currentRoom = "venus"
start = True start = True
colony = False colony = False
kill = 0 kill = 0
@ -30,10 +30,13 @@ class bcolors:
# separating the text and printing in delay # separating the text and printing in delay
def printer (text): def printer (text = "hello i am the default text", slow=True):
for t in text: for t in text:
print(t, end = "", flush= True) print(t, end = "", flush= True)
time.sleep(random.choice([0.01, 0.05, 0.1, 0.03, 0.02])) if slow == True:
time.sleep(random.choice([0.01, 0.05, 0.1, 0.03, 0.02]))
else:
time.sleep(random.choice([0.001, 0.005, 0.01, 0.003, 0.002]))
print() print()
# Defining the "taker" function and setting it up in each of the three spaces below # Defining the "taker" function and setting it up in each of the three spaces below
@ -58,7 +61,7 @@ while True:
. *°    . . . * . . . *°    . . . * . .
""") """, slow=False)
printer(bcolors.RED +""" printer(bcolors.RED +"""
are you ready are you ready
to steal and kill your way into to steal and kill your way into
@ -72,7 +75,7 @@ while True:
# clearing the screen: "clear" for macOS # clearing the screen: "clear" for macOS
i = input() i = input()
os.system("clear") #os.system("clear")
spliti = i.split(" ") spliti = i.split(" ")
@ -90,15 +93,15 @@ while True:
elif i in ["exit","fly","run","spaceship","leave"]: elif i in ["exit","fly","run","spaceship","leave"]:
printer("you fly away from venus in your spaceship.") printer("you fly away from venus in your spaceship.")
currentRoom = "earth" currentRoom = "earth"
# the point system. killing adds 30 kills to the player's score. The goal is to reach 120 kills.
elif i in ["kill","murder","pillage", "colonise", "colonize"]:
printer("you are killing many natives. your colony expands.")
kill = kill + 30
printer("your kill count is " + str(kill))
else: else:
taker("mars") taker("venus")
# the point system. killing adds 30 kills to the player's score. The goal is to reach 120 kills.
if i in ["kill","murder","pillage", "colonise", "colonize"]:
printer("you are killing many natives. your colony expands.")
kill = kill + 30
printer("your kill count is " + str(kill))
# Choices in the neutral zone # Choices in the neutral zone
elif currentRoom == "earth": elif currentRoom == "earth":
@ -146,4 +149,4 @@ while True:
else: else:
printer("no way! you only killed " + str(kill) + " aliens. go kill and colonise more and then maybe you can lead your own colony one day!""") printer("no way! you only killed " + str(kill) + " aliens. go kill and colonise more and then maybe you can lead your own colony one day!""")
else: else:
taker("uranus") taker("uranus")

Loading…
Cancel
Save