Exemple #1
0
 public ImpactGame()
 {
     ImpactGame.instance = this;
     graphics = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferWidth = 1280;
     graphics.PreferredBackBufferHeight = 720;
 }
Exemple #2
0
 public ImpactGame()
 {
     ImpactGame.instance = this;
     graphics            = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferWidth  = 1280;
     graphics.PreferredBackBufferHeight = 720;
 }
Exemple #3
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            using (ImpactGame game = new ImpactGame())
            {
#if !XBOX
                if (args.Length == 3 && args[0].Equals("/generate"))
                {
                    string sourceFile = args[1];
                    string path       = System.IO.Path.GetDirectoryName(args[2]);
                    string name       = System.IO.Path.GetFileNameWithoutExtension(args[2]);

                    game.GenerateAssembly(sourceFile, path, name);
                }
#endif
                game.Run();
            }
            return;
        }