Credits read from file now.
This commit is contained in:
parent
54ef9d7b17
commit
2b27ce97b7
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user