Created
November 20, 2019 22:34
-
-
Save bbSnavy/963cbe4f5af893e2e51ec5b1cf1bbfe6 to your computer and use it in GitHub Desktop.
Mario Animation in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
# Mario Animation in Python | |
# Source (Written in C): https://www.youtube.com/watch?v=AwpWm6VIGl4 | |
if os.name == 'nt': | |
clear = 'cls' | |
else: | |
clear = 'clear' | |
while True: | |
os.system(clear) | |
print(" ____") | |
print(" _I I___") | |
print(" I__________I") | |
print(" _I___I I I I_") | |
print(" I I I I_I _ I_") | |
print(" I I_I I I__I") | |
print(" I__I_ I____I") | |
print(" _I_____I") | |
print(" _I I I _I___") | |
print(" _I I I I I I_") | |
print(" I I _I I_I I_ _I") | |
print(" I I I_I I") | |
print(" I__I I I") | |
print(" I ___ I_I") | |
print(" _I __I I____I") | |
print(" _I I I I_") | |
print(" I____I I____I") | |
print(".........-.........-.........-.........-.........-.........-.........-.........-") | |
time.sleep(0.5) | |
os.system(clear) | |
print(" ____") | |
print(" _I I___") | |
print(" I__________I") | |
print(" _I___I I I I_") | |
print(" I I I I_I _ I_") | |
print(" I I_I I I__I") | |
print(" I__I_ I____I") | |
print(" _____I_____I") | |
print(" __I I I_I_______") | |
print(" I I_ I I_ I_ I") | |
print(" I__I I__I I___I_I") | |
print(" I I _") | |
print(" _I I_I I") | |
print(" _I ___ I I") | |
print(" I I___I I___I__I") | |
print(" I_ I_") | |
print(" I___I") | |
print(".........-.........-.........-.........-.........-.........-.........-.........-") | |
time.sleep(0.2) | |
os.system(clear) | |
print(" ____") | |
print(" _I I___") | |
print(" I__________I") | |
print(" _I___I I I I_") | |
print(" I I I I_I _ I_") | |
print(" I I_I I I__I") | |
print(" I__I_ I____I") | |
print(" _I_____I _") | |
print(" _I I_I I_I I_") | |
print(" _I I_ I _I") | |
print(" I I I_____I___I") | |
print(" I___I I") | |
print(" I I") | |
print(" _II _ _I") | |
print(" I I_____I I___I") | |
print(" I__I _I I_") | |
print(" I______I") | |
print(".........-.........-.........-.........-.........-.........-.........-.........-") | |
time.sleep(0.2) | |
os.system(clear) | |
print(" ____") | |
print(" _I I___") | |
print(" I__________I") | |
print(" _I___I I I I_") | |
print(" I I I I_I _ I_") | |
print(" I I_I I I__I") | |
print(" I__I_ I____I") | |
print(" _____I_____I") | |
print(" __I I I_I_______") | |
print(" I I_ I I_ I_ I") | |
print(" I__I I__I I___I_I") | |
print(" I I _") | |
print(" _I I_I I") | |
print(" _I ___ I I") | |
print(" I I___I I___I__I") | |
print(" I_ I_") | |
print(" I___I") | |
print(".........-.........-.........-.........-.........-.........-.........-.........-") | |
time.sleep(0.2) | |
os.system(clear) | |
print(" ____") | |
print(" _I I___") | |
print(" I__________I") | |
print(" _I___I I I I_") | |
print(" I I I I_I _ I_") | |
print(" I I_I I I__I") | |
print(" I__I_ I____I") | |
print(" _I_____I _") | |
print(" _I I_I I_I I_") | |
print(" _I I_ I _I") | |
print(" I I I_____I___I") | |
print(" I___I I") | |
print(" I I") | |
print(" _II _ _I") | |
print(" I I_____I I___I") | |
print(" I__I _I I_") | |
print(" I______I") | |
print(".........-.........-.........-.........-.........-.........-.........-.........-") | |
time.sleep(0.2) | |
os.system(clear) | |
print(" ____") | |
print(" _I I___") | |
print(" I__________I") | |
print(" _I___I I I I_") | |
print(" I I I I_I _ I_") | |
print(" I I_I I I__I") | |
print(" I__I_ I____I") | |
print(" _____I_____I") | |
print(" __I I I_I_______") | |
print(" I I_ I I_ I_ I") | |
print(" I__I I__I I___I_I") | |
print(" I I _") | |
print(" _I I_I I") | |
print(" _I ___ I I") | |
print(" I I___I I___I__I") | |
print(" I_ I_") | |
print(" I___I") | |
print(".........-.........-.........-.........-.........-.........-.........-.........-") | |
time.sleep(0.2) | |
os.system(clear) | |
print(" ____ ") | |
print(" _I I___") | |
print(" I__________I") | |
print(" _I___I I I I_") | |
print(" I I I I_I _ I_") | |
print(" I I_I I I__I") | |
print(" I__I_ I____I") | |
print(" _I_____I _") | |
print(" _I I_I I_I I_") | |
print(" _I I_ I _I") | |
print(" I I I_____I___I") | |
print(" I___I I") | |
print(" I I") | |
print(" _II _ _I") | |
print(" I I_____I I___I") | |
print(" I__I _I I_") | |
print(" I______I") | |
print(".........-.........-.........-.........-.........-.........-.........-.........-") | |
time.sleep(0.2) | |
os.system(clear) | |
print(" ____") | |
print(" _I I___") | |
print(" I__________I") | |
print(" _I___I I I I_") | |
print(" I I I I_I _ I_") | |
print(" I I_I I I__I") | |
print(" I__I_ I____I") | |
print(" _____I_____I") | |
print(" __I I I_I_______") | |
print(" I I_ I I_ I_ I") | |
print(" I__I I__I I___I_I") | |
print(" I I _") | |
print(" _I I_I I") | |
print(" _I ___ I I") | |
print(" I I___I I___I__I") | |
print(" I_ I_") | |
print(" I___I") | |
print(".........-.........-.........-.........-.........-.........-.........-.........-") | |
time.sleep(0.2) | |
os.system(clear) | |
print(" ____") | |
print("_I I___") | |
print("__________I I") | |
print("___I I I I_ _I") | |
print(" I I_I _ I_ I I") | |
print("_I I I__I I I") | |
print("I_ I____I I__") | |
print(" _I_____I") | |
print("I I II _") | |
print(" I II I ") | |
print(" I I I ") | |
print("_ I___ I II") | |
print(" I_ I _I I_") | |
print("I_ I__I __I") | |
print(" I____I I_") | |
print(" I I_____I") | |
print(" I____I") | |
print(".........-.........-.........-.........-.........-.........-.........-.........-") | |
time.sleep(0.2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment