//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();
     }
 }
Exemple #2
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();
        }