Advertisement
m99t

Untitled

Sep 20th, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. """
  2. #-----------------------------------------------------------------------------------------------------#
  3. | |
  4. | __________________ .___ __ .__ |
  5. | _____/ __ \______ \_______ ____ __| _/_ __ _____/ |_|__| ____ ____ |
  6. | / \____ /| ___/\_ __ \/ _ \ / __ | | \_/ ___\ __\ |/ _ \ / \ |
  7. | | Y Y \ / / | | | | \( <_> ) /_/ | | /\ \___| | | ( <_> ) | \ |
  8. | |__|_| //____/ |____| |__| \____/\____ |____/ \___ >__| |__|\____/|___| / |
  9. | \/ \/ \/ \/ |
  10. | |
  11. #-----------------------------------------------------------------------------------------------------#
  12.  
  13. [ My second program of only my code, a basic text game ]
  14.  
  15. Title [ m9life ]
  16. Date [ 20 - September - 2014 ]
  17. Authors [ Sean Murphy, ]
  18. """
  19.  
  20. #Importing souls
  21.  
  22. from sys import argv
  23. from subprocess import call
  24. import time
  25.  
  26. #Variables
  27.  
  28.  
  29. #Save location
  30.  
  31. autosave = "./saves/0.txt"
  32. savef = open(autosave)
  33.  
  34.  
  35. #Define's
  36.  
  37. def start(type):
  38. if type == "new":
  39. print "Starting new game"
  40. call(["main.py"])
  41. else:
  42. print "Invalid selection"
  43. time.sleep(3)
  44. call(["menu.py"])
  45.  
  46. def load():
  47. print "Loading game"
  48. time.sleep(3)
  49. call(["load.py"])
  50.  
  51. def option():
  52. print "Loading Options"
  53. time.sleep(3)
  54. call(["options.py"])
  55.  
  56. def credits():
  57. print "Loading Credits"
  58. time.sleep(3)
  59. call(["credits.py"])
  60.  
  61. #Main code
  62.  
  63. call(["clear"])
  64.  
  65. print """
  66.  
  67. #-------------------------------------------------------------------# #--------------------------#
  68. | _____ ______ ________ ___ ___ ________ _______ | | |
  69. ||\ _ \ _ \|\ ___ \ |\ \ |\ \|\ _____\\ ___ \ | | 1. New Game |
  70. |\ \ \\\__\ \ \ \____ \ \ \ \ \ \ \ \ \__/\ \ __/| | | 2. Load Game |
  71. | \ \ \\|__| \ \|____|\ \ \ \ \ \ \ \ \ __\\ \ \_|/ | | 3. Options |
  72. | \ \ \ \ \ \ __\_\ \ \ \ \____\ \ \ \ \_| \ \ \_|\ \ | 4. Credits |
  73. | \ \__\ \ \__\|\_______\ \ \_______\ \__\ \__\ \ \____ __\| 5. Exit |
  74. | \|__| \|__|\|_______| \|_______|\|__|\|__| \|_______|| |
  75. | V. 1.0 | | |
  76. #-------------------------------------------------------------------# #--------------------------#
  77.  
  78. """
  79.  
  80. while True:
  81. select = raw_input("> ")
  82.  
  83. if select == "1":
  84. start("new")
  85. elif select == "2":
  86. load()
  87. elif select == "3":
  88. option()
  89. elif select == "4":
  90. credits()
  91. elif select == "5":
  92. exit(0)
  93. else:
  94. print "\n Inbalid Selection"
  95. time.sleep(3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement