예제 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (GameLoop game = new GameLoop())
     {
         game.Run();
     }
 }
예제 #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);
        }
예제 #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();
            }
        }