From 2b27ce97b7d52745189703002b15ba59bb3a16cf Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 8 Dec 2019 16:25:11 -0500 Subject: [PATCH] Credits read from file now. --- libstormgames.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libstormgames.py b/libstormgames.py index 8e839ba..3483f20 100755 --- a/libstormgames.py +++ b/libstormgames.py @@ -132,10 +132,14 @@ def instructions(): display_text(info) def credits(): - info = [ - gameName + ": brought to you by Storm Dragon",\ - "Billy Wolfe, designer and coder.",\ - "https://social.wolfe.casa/storm"] + # Read in the credits file. + try: + with open('files/credits.txt', 'r') as f: + info = f.readlines() + # Add the header + info.insert(0, gameName + ": brought to you by Storm Dragon") + except: + info = ["Credits file is missing."] display_text(info) def display_text(text):