Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- #-----------------------------------------------------------------------------------------------------#
- | |
- | __________________ .___ __ .__ |
- | _____/ __ \______ \_______ ____ __| _/_ __ _____/ |_|__| ____ ____ |
- | / \____ /| ___/\_ __ \/ _ \ / __ | | \_/ ___\ __\ |/ _ \ / \ |
- | | Y Y \ / / | | | | \( <_> ) /_/ | | /\ \___| | | ( <_> ) | \ |
- | |__|_| //____/ |____| |__| \____/\____ |____/ \___ >__| |__|\____/|___| / |
- | \/ \/ \/ \/ |
- | |
- #-----------------------------------------------------------------------------------------------------#
- [ My second program of only my code, a basic text game ]
- Title [ m9life ]
- Date [ 20 - September - 2014 ]
- Authors [ Sean Murphy, ]
- """
- #Importing souls
- from sys import argv
- from subprocess import call
- import time
- #Variables
- #Save location
- autosave = "./saves/0.txt"
- savef = open(autosave)
- #Define's
- def start(type):
- if type == "new":
- print "Starting new game"
- call(["main.py"])
- else:
- print "Invalid selection"
- time.sleep(3)
- call(["menu.py"])
- def load():
- print "Loading game"
- time.sleep(3)
- call(["load.py"])
- def option():
- print "Loading Options"
- time.sleep(3)
- call(["options.py"])
- def credits():
- print "Loading Credits"
- time.sleep(3)
- call(["credits.py"])
- #Main code
- call(["clear"])
- print """
- #-------------------------------------------------------------------# #--------------------------#
- | _____ ______ ________ ___ ___ ________ _______ | | |
- ||\ _ \ _ \|\ ___ \ |\ \ |\ \|\ _____\\ ___ \ | | 1. New Game |
- |\ \ \\\__\ \ \ \____ \ \ \ \ \ \ \ \ \__/\ \ __/| | | 2. Load Game |
- | \ \ \\|__| \ \|____|\ \ \ \ \ \ \ \ \ __\\ \ \_|/ | | 3. Options |
- | \ \ \ \ \ \ __\_\ \ \ \ \____\ \ \ \ \_| \ \ \_|\ \ | 4. Credits |
- | \ \__\ \ \__\|\_______\ \ \_______\ \__\ \__\ \ \____ __\| 5. Exit |
- | \|__| \|__|\|_______| \|_______|\|__|\|__| \|_______|| |
- | V. 1.0 | | |
- #-------------------------------------------------------------------# #--------------------------#
- """
- while True:
- select = raw_input("> ")
- if select == "1":
- start("new")
- elif select == "2":
- load()
- elif select == "3":
- option()
- elif select == "4":
- credits()
- elif select == "5":
- exit(0)
- else:
- print "\n Inbalid Selection"
- time.sleep(3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement