Ejemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (GameLoop game = new GameLoop())
     {
         game.Run();
     }
 }
Ejemplo n.º 2
0
        public GameLoop()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            //displayFPS = new DisplayFPS(this);
            //Components.Add(displayFPS);

            gameInstance = this;

            GameSettings.Initialise();
            GameSettings.ApplyChanges(ref graphics);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            using (GameLoop game = new GameLoop())
            {
                for (int i = 0; i < args.LongLength; i++)
                {
                    if (args[i].Equals("--novideo"))
                    {
                        game.parameterNoVideo = true;
                    }
                    if (args[i].Equals("--loadlevel"))
                    {
                        game.parameterLevelToLoad = args[i + 1];
                    }
                }

                game.Run();
            }
        }