Ejemplo n.º 1
0
        //Rooms
        //Kitchen with absolutely nothing in it.
        //Pool room with a giant swimming pool. The pool is empty but theres water everywhere else
        //Wardrobe with lots and lots of hats.
        //Upside-down-house room where everything is upside dooooooooooooooooown
        //Tiny room with a hole that leads to the dungeon.

        //Introduce Player to the building and rooms
        public void ColoredGreet()
        {
            //Colors for later use
            const String COLORS = "Red,Blue,Pink,Gray,Purple,Aquamarine,Gold,Silver";
            String       ThirdColor;
            int          CLocation;
            int          CLength;

            //Select Third Color of String
            CLocation  = COLORS.IndexOf(",");
            CLength    = COLORS.Length - CLocation;
            ThirdColor = COLORS.Substring(CLocation + 1, CLength - 1);
            CLocation  = ThirdColor.IndexOf(",");
            CLength    = ThirdColor.Length - CLocation;
            ThirdColor = ThirdColor.Substring(CLocation + 1, CLength - 1);
            CLocation  = ThirdColor.IndexOf(",");
            CLength    = ThirdColor.Length - CLocation;
            ThirdColor = ThirdColor.Substring(0, CLocation);
            Console.WriteLine("You've found the key!");
            Console.WriteLine("The door in front of you slides into the ground without you even using the key.");
            Console.WriteLine("You step through the doorway and are greeted by a floating, glowing " + ThirdColor + " ball. The ball then instantly disappears.");
        }