diff --git a/source/TextBlade.Core/Commands/ShowCreditsCommand.cs b/source/TextBlade.Core/Commands/ShowCreditsCommand.cs index f29265d..479e566 100644 --- a/source/TextBlade.Core/Commands/ShowCreditsCommand.cs +++ b/source/TextBlade.Core/Commands/ShowCreditsCommand.cs @@ -1,4 +1,3 @@ -using System; using TextBlade.Core.Characters; using TextBlade.Core.Game; @@ -8,12 +7,14 @@ public class ShowCreditsCommand : ICommand { public IEnumerable Execute(IGame game, List party) { - var toReturn = new List + var creditsFilePath = Path.Join("Content", "Credits.txt"); + var toReturn = new List(); + if (File.Exists(creditsFilePath)) { - "All programming, content, etc. created by NightBlade!", - "Shout out to the following people for providing free resources:", - " Seagulls close-up.wav by juskiddink -- https://freesound.org/s/100724/ -- License: Attribution 4.0" - }; + toReturn.Add(File.ReadAllText(creditsFilePath)); + } + + toReturn.Add("TextBlade text JRPG engine: programming by NightBlade."); return toReturn; } } diff --git a/source/VoidWalker.Main/Content/Credits.txt b/source/VoidWalker.Main/Content/Credits.txt new file mode 100644 index 0000000..fdd7cab --- /dev/null +++ b/source/VoidWalker.Main/Content/Credits.txt @@ -0,0 +1,4 @@ +VoidWalker programming and prose written by NightBlade! + +Shout out to the following people for providing free resources: + Seagulls close-up.wav by juskiddink -- https://freesound.org/s/100724/ -- License: Attribution 4.0 \ No newline at end of file