//Play a morbid death speel and end the game
 public static void death(string reason)
 {
     //Slow things down so the death speel is more creepy
     Character.Settings["SpeechSpeed"] = 2;
     CharacterDeath.Speel(reason);
     showCharInfoGUI();
     EOA.pressAnyKeyToContinue();
     if (CharacterDeath.lastCheckpoint())
     {
         CharacterDeath.resetStats();                 // reset character
         ast.start.Menu start = new ast.start.Menu(); //initialise new menu
         start.menuSeq();                             // restart
     }
     else
     {
         new ast.story().Run();
     }
 }
        public void run() // starting code
        {
            Console.Clear();

            Console.Write($"Please select the setting you wish to edit.\n[1] Dialogue Speed\n= {Character.Settings["SpeechSpeed"]}\n\n[2] Profanity\n= {Character.Settings["Profanity"]}\n\n[3] ColourTheme\n= {Character.Settings["ColourTheme"]}\n\n[4] SpecialEffects\n= {Character.Settings["SpecialEffects"]}\n\n[5] Full Screen(WIP - Not Recommended)\n\n[x] Exit\n> ");
            string response = Console.ReadLine();

            switch (response.ToLower())
            {
            case "1":
                editDialogueSpeedSetting();
                break;

            case "2":
                editProfanitySetting();
                break;

            case "3":
                editColourThemeSetting();
                break;

            case "4":
                editSpecialEffectsSetting();
                break;

            case "5":
                FullScreen FS = new FullScreen();
                FS.MakeFullScreen();
                break;

            case "x":
                menu.menuSeq();
                break;

            default:
                Console.WriteLine("\nPlease enter a valid number!");
                Thread.Sleep(Character.Settings["SpeechSpeed"]);
                break;
            }
        }
Beispiel #3
0
        #pragma warning disable CS0162

        public static void Main(string[] args)
        {
            Console.Title = "Scark";
            Go();
            //Used To Remove Warnings
            Console.Clear();

            // If the user started the program with a file
            if (args.Length > 0)
            {
                if (args[0] != "")
                {
                    Character.Load(args[0], true);
                }
            }

            // converting the start main function to a non - static
            ast.start.Menu start = new ast.start.Menu();
            start.menuSeq(); // starting the main function

            Console.Write("Press any key to exit...");
            Console.ReadKey();
        }