Example #1
0
        public static void Main()
        {
            Planets planets = new Planets();

            Console.WriteLine("Welcome to Space Game 2225! Space trading is a lucrative buisness and you want a slice.");
            Console.WriteLine("You have saved since you were a teenager, staring at the ship poster on your wall.");
            Console.WriteLine("Finally in the year 2225 you were able to afford a basic ship with upgrade slots.");
            Console.WriteLine("You start on Earth with one cargo space, which can be upgraded later on in the upgrade shop.");
            Console.WriteLine("Buy your first good and start your journey!");
            Console.WriteLine("Press [Enter]");
            Console.ReadLine();
            Console.Clear();
            planets.EarthHomeScreen();
        }
Example #2
0
        public void TravelEarth()
        {
            string input = "";

            Console.WriteLine("To travel to Alpha Centauri Press: [a]");
            Console.WriteLine("To travel to m63 Press: [b]");
            Console.WriteLine("To travel to Gilese: [c]");
            Console.WriteLine("To travel to Wolf: [d]");
            Console.WriteLine("To travel to Ross: [e]");
            Console.WriteLine("To travel to Eridani [f]");
            Console.WriteLine("To travel to Virginis [g]");
            Console.WriteLine("To return to main menu Press: [h]");
            input = Console.ReadLine();
            if (input == "a")
            {
                //4LY
                warpDrive.EarthToAC();
                Console.Clear();
                planets.AlphaCentauriScreen();
            }
            if (input == "b")
            {
                //27 LY
                warpDrive.EarthToM63();
                Console.Clear();
                planets.M63HomeScreen();
            }
            if (input == "c")
            {
                //10 LY
                warpDrive.EarthToGilese();
                Console.Clear();
                planets.GileseScreen();
            }
            if (input == "d")
            {
                //13LY
                warpDrive.EarthToWolf();
                Console.Clear();
                planets.WolfScreen();
            }
            if (input == "e")
            {
                //18LY
                warpDrive.EarthToRoss();
                Console.Clear();
                planets.RossScreen();
            }
            if (input == "f")
            {
                //37
                warpDrive.EarthToEridani();
                Console.Clear();
                planets.EridaniScreen();
            }
            if (input == "g")
            {
                //50 LY
                warpDrive.EarthToVirginis();
                Console.Clear();
                planets.VirginisScreen();
            }
            else
            {
                Console.Clear();
                planets.EarthHomeScreen();
            }
        }