예제 #1
0
        static void Main(string[] args)
        {
            TheWorldBuilder world = new TheWorldBuilder();


            //string listEntry = world.Room[0].Name;
            //Console.WriteLine(listEntry);

            //TheoGraphics graphics = new TheoGraphics();



            TheGame Game = new TheGame();

            //start our game loop - we keep running this function until the player quits.
            while (Game.isRunning)
            {
                Game.Update();
            }
        }
예제 #2
0
        private static string[,] DescriptionMap(string field1, string mountain, string forest, string lava, string river, string bridge, string dirt)
        {
            TheWorldBuilder world = new TheWorldBuilder();

            string spaceShip        = world.Room[0].Name + ":\n" + world.Room[0].Description;
            string outSideSpaceShip = world.Room[1].Name + ": \n" + world.Room[1].Description;

            return(new string[14, 14]
            {
                { null, null, null, null, null, null, null, null, null, null, null, null, null, null, },


                { null, null, null, mountain, null, mountain, null, null, null, mountain, mountain, mountain, null, null },

                { null, null, mountain, field1, river, field1, mountain, null, mountain, field1, forest, forest, mountain, null },

                { null, mountain, field1, field1, bridge, field1, mountain, mountain, forest, forest, forest, forest, mountain, null },

                { null, river, river, field1, river, field1, mountain, mountain, forest, field1, field1, field1, mountain, null },

                { null, field1, bridge, field1, river, field1, dirt, dirt, field1, field1, field1, field1, mountain, null },

                { null, field1, river, river, null, river, mountain, mountain, river, river, bridge, river, mountain, null },

                { null, field1, bridge, field1, river, null, null, null, null, mountain, dirt, dirt, mountain, null },

                { null, river, river, field1, field1, mountain, null, null, lava, mountain, dirt, dirt, mountain, null },

                { null, river, forest, forest, field1, mountain, null, lava, dirt, dirt, dirt, dirt, mountain, null },

                { null, forest, forest, forest, forest, mountain, lava, dirt, dirt, lava, mountain, forest, mountain, null },

                { null, outSideSpaceShip, forest, forest, river, null, null, lava, lava, null, mountain, forest, mountain, null },

                { null, spaceShip, mountain, mountain, null, null, null, null, null, null, mountain, field1, mountain, null, },


                { null, null, null, null, null, null, null, null, null, null, null, null, null, null, },
            });
        }