-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
35 lines (30 loc) · 933 Bytes
/
Program.cs
File metadata and controls
35 lines (30 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.IO;
namespace CYOA
{
class Program
{
static void Main(string[] args)
{
Console.CursorVisible = false;
var foldername = "";
while (foldername != "?")
{
Console.Clear();
MainMenu mainMeanu = new MainMenu();
foldername = mainMeanu.Display();
if (foldername == "?") return;
if (!File.Exists("GameData/" + foldername + "/MainMenu.txt"))
{
Settings.Color(FontColor.DEFAULT);
Console.WriteLine($"\nSorry, \"{foldername}\" is not formatted properly.\n\nPress ENTER to select a different story.");
Console.ReadLine();
}
else
{
Story story = new Story(foldername);
}
}
}
}
}