f.close() if data[0] == "LOL NO U": # contents of the dev file needs to be # quickly asks you want to not be in dev mode in obfuscated way if not input("What would you like? Type in n: ") == "n": GAMEINFO['devmode'] = 1 print(CLEARSCREEN) # clears the screen except: # does nothing if no dev file there pass #raw_input("HI I'M NOT A DEV!") # Start Screen is after reading in settings so it can skip start screen if enabled MAPS, PLAYER, ITEMS, INTERACT, QUESTS, ENEMIES, GAMEINFO, GAMESETTINGS = Opening.StartScreen() # Startscreen loop where you can play new game, loadgame, choose settings, or exit #TODO Comment out before release, used to debug loading #GAMEINFO['devmode'] = 1 # The Actual Start of the game when you hit Play, depending on if in Dev Mode or not if GAMEINFO['devmode']: # If Dev mode enabled no error catching MAPS, PLAYER, ITEMS, INTERACT, QUESTS, ENEMIES, GAMEINFO, GAMESETTINGS = Setup(MAPS, PLAYER, ITEMS, INTERACT, QUESTS, ENEMIES, GAMEINFO, GAMESETTINGS) Main(MAPS, PLAYER, ITEMS, INTERACT, QUESTS, ENEMIES, GAMEINFO, GAMESETTINGS) else: # Dev mode not enabled so error catching try: # runs the main functions (the whole game bassically) MAPS, PLAYER, ITEMS, INTERACT, QUESTS, ENEMIES, GAMEINFO, GAMESETTINGS = Setup(MAPS, PLAYER, ITEMS, INTERACT, QUESTS, ENEMIES, GAMEINFO, GAMESETTINGS) Main(MAPS, PLAYER, ITEMS, INTERACT, QUESTS, ENEMIES, GAMEINFO, GAMESETTINGS) # end function is run at the end of main loop so you can restart the game except (KeyboardInterrupt, SystemExit): # if keyboard pressed or x out of the game, this is so it doesn't save null data when you press teh keyboard raise