Credits read from file now.

This commit is contained in:
Storm Dragon 2019-12-08 16:25:11 -05:00
parent 54ef9d7b17
commit 2b27ce97b7

View File

@ -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):