Skip to content

Commit

Permalink
added loading animation to main file
Browse files Browse the repository at this point in the history
  • Loading branch information
kedron-abbott authored and kedron-abbott committed Nov 17, 2016
1 parent 2eb6dce commit 68f637d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
Binary file modified ZombieSurvivalFinal/.DS_Store
Binary file not shown.
14 changes: 12 additions & 2 deletions ZombieSurvivalFinal/ZombieSurvivalGame.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ def slowPrint(text,speed):
time.sleep(random.random()*10.0/speed)
print ''

def loadingAnimation(cycles):
clear()
for loop in range(cycles):
print("loading.")
newScene(.5)
print("loading..")
newScene(.5)
print("loading...")
newScene(.5)


#Classes:
#i wish i knew how to make these properly :( // it would probably help y'know
Expand Down Expand Up @@ -83,7 +93,7 @@ def slowPrint(text,speed):
print('''
_____ __ __ _ __ ___
| __ \ \ \ / / (_) /_ | / _ \
| __ \ \ \ / / (_) /_ | / _ \
| | | | ___ _ __ ___ ___ \ \ / /__ _ __ ___ _ ___ _ __ | | | | | |
| | | |/ _ \ '_ ` _ \ / _ \ \ \/ / _ \ '__/ __| |/ _ \| '_ \ | | | | | |
| |__| | __/ | | | | | (_) | \ / __/ | \__ \ | (_) | | | | | | _ | |_| |
Expand All @@ -93,7 +103,7 @@ def slowPrint(text,speed):
print breaker
if start == "RULES":
while True:
begin = raw_input("Every decision you make is a life and death situation...and your time is limited. \nThe choices you make now determine your fate. \n\nAre you ready to begin? yes || no\n\nResponse: ").upper().strip()
begin = raw_input("Every decision and action can result in the game changing....and your time is limited. \nThe choices you make determine your fate. \n\nAre you ready to begin? yes || no\n\nResponse: ").upper().strip()
print breaker
if begin == "YES":
start = "BEGIN";
Expand Down
4 changes: 2 additions & 2 deletions ZombieSurvivalFinal/typingSimulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ def slowType(text,speed):
time.sleep(random.random()*10.0/speed)
print ''

slowType("Seven actual words about what??? \"...sure\" says Dustin",25)
slowType("Seven actual words about what??? \"...sure\" says Dustin",75)
slowType("The quick brown fox jumped over the lazy river",25)
slowType("The quick brown fox jumped over the lazy river",75)

0 comments on commit 68f637d

Please sign in to comment.