Advertisement
Guest User

assci.py

a guest
Dec 16th, 2013
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.94 KB | None | 0 0
  1. #-------------------------------------------------------------------------------
  2. # Name:        assci
  3. # Purpose:     To create all the assci art and graphic tools for the game:
  4. #              "you wake up..."
  5. #
  6. # Author:      William Bryant
  7. #
  8. # Created:     15/12/2013
  9. # Copyright:   (c) William 2013
  10. #-------------------------------------------------------------------------------
  11.  
  12. import time
  13. import os
  14.  
  15. WOODEN_DOOR = """ ______________________________
  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. #Error message if user executes the wrong file.
  41. if __name__ == '__main__':
  42.     print("[ERROR]: Do not run this file. Run main.py - this file should not be executed!")
  43.     time.sleep(4)
  44.     exit()
  45.  
  46. #Clear function
  47. def clear():
  48.     """
  49.    Clears the console screen using the built in commands on a operating
  50.    system (here linux and windows)
  51.    """
  52.     os.system(['clear','cls', "^L"][os.name == 'nt'])
  53.  
  54. #"Wake up..." title/banner at the start
  55. def ywu_banner(num_of_times):
  56.     """
  57.    Prints You wake up...(the game name) in ascii code big letters into a
  58.    console and clears the screen using the clear function above and reprints
  59.    the message to make the dots at the end appear to be moving.
  60.    """
  61.     print("__     __                         _")
  62.     time.sleep(0.25)
  63.     print("\ \  / /                        | |")
  64.     time.sleep(0.25)
  65.     print(" \ \_/ /__  _   _  __      ____ _| | _____   _   _ _ __")
  66.     time.sleep(0.25)
  67.     print("  \  / _ \| | | | \ \ /\ / / _` | |/ / _ \ | | | | '_ \ ")
  68.     time.sleep(0.25)
  69.     print("   | | (_) | |_| |  \ V  V / (_| |   <  __/ | |_| | |_) | _ _ ")
  70.     time.sleep(0.25)
  71.     print("   |_|\___/ \__,_|   \_/\_/ \__,_|_|\_\___|  \__,_| .__(_|_|_)")
  72.     time.sleep(0.25)
  73.     print("                                                  | |    ")
  74.     time.sleep(0.25)
  75.     print("                                                  |_| ")
  76.     time.sleep(0.25)
  77.     clear()
  78.  
  79.     for foo in range(num_of_times):
  80.         print("__     __                         _")
  81.         print("\ \  / /                        | |")
  82.         print(" \ \_/ /__  _   _  __      ____ _| | _____   _   _ _ __")
  83.         print("  \  / _ \| | | | \ \ /\ / / _` | |/ / _ \ | | | | '_ \ ")
  84.         print("   | | (_) | |_| |  \ V  V / (_| |   <  __/ | |_| | |_) | _  ")
  85.         print("   |_|\___/ \__,_|   \_/\_/ \__,_|_|\_\___|  \__,_| .__(_|_)")
  86.         print("                                                  | |    ")
  87.         print("                                                  |_| ")
  88.         time.sleep(0.7)
  89.         clear()
  90.  
  91.         print("__     __                         _")
  92.         print("\ \  / /                        | |")
  93.         print(" \ \_/ /__  _   _  __      ____ _| | _____   _   _ _ __")
  94.         print("  \  / _ \| | | | \ \ /\ / / _` | |/ / _ \ | | | | '_ \ ")
  95.         print("   | | (_) | |_| |  \ V  V / (_| |   <  __/ | |_| | |_) |  ")
  96.         print("   |_|\___/ \__,_|   \_/\_/ \__,_|_|\_\___|  \__,_| .__(_)")
  97.         print("                                                  | |    ")
  98.         print("                                                  |_| ")
  99.         time.sleep(0.7)
  100.         clear()
  101.  
  102.         print("__     __                         _")
  103.         print("\ \  / /                        | |")
  104.         print(" \ \_/ /__  _   _  __      ____ _| | _____   _   _ _ __")
  105.         print("  \  / _ \| | | | \ \ /\ / / _` | |/ / _ \ | | | | '_ \ ")
  106.         print("   | | (_) | |_| |  \ V  V / (_| |   <  __/ | |_| | |_) |  ")
  107.         print("   |_|\___/ \__,_|   \_/\_/ \__,_|_|\_\___|  \__,_| .___/")
  108.         print("                                                  | |    ")
  109.         print("                                                  |_| ")
  110.         time.sleep(0.7)
  111.         clear()
  112.  
  113.         print("__     __                         _")
  114.         print("\ \  / /                        | |")
  115.         print(" \ \_/ /__  _   _  __      ____ _| | _____   _   _ _ __")
  116.         print("  \  / _ \| | | | \ \ /\ / / _` | |/ / _ \ | | | | '_ \ ")
  117.         print("   | | (_) | |_| |  \ V  V / (_| |   <  __/ | |_| | |_) | _ _ ")
  118.         print("   |_|\___/ \__,_|   \_/\_/ \__,_|_|\_\___|  \__,_| .__(_|_|_)")
  119.         print("                                                  | |    ")
  120.         print("                                                  |_| ")
  121.         time.sleep(0.7)
  122.         clear()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement