Credits read from file now.
This commit is contained in:
parent
54ef9d7b17
commit
2b27ce97b7
@ -132,10 +132,14 @@ def instructions():
|
|||||||
display_text(info)
|
display_text(info)
|
||||||
|
|
||||||
def credits():
|
def credits():
|
||||||
info = [
|
# Read in the credits file.
|
||||||
gameName + ": brought to you by Storm Dragon",\
|
try:
|
||||||
"Billy Wolfe, designer and coder.",\
|
with open('files/credits.txt', 'r') as f:
|
||||||
"https://social.wolfe.casa/storm"]
|
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)
|
display_text(info)
|
||||||
|
|
||||||
def display_text(text):
|
def display_text(text):
|
||||||
|
Loading…
Reference in New Issue
Block a user