예제 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     //try
     {
         Console.Enabled = false;
         using (Game1 game = new Game1())
         {
             game.Run();
         }
     }
     //catch (Exception e)
     //{
     //    CrashForm crashForm = new CrashForm();
     //    crashForm.SetInfo(e.Message, e.StackTrace);
     //    Application.Run(crashForm);
     //}
 }
예제 #2
0
        public static void Init(GraphicsDeviceManager g, ContentManager c, Game1 g1)
        {
            game = g1;
            map = new TileSet();
            cam = new Camera(g);
            menuManager = new MenuManager(game);
            content = c;

            InitEndgameStruct();
        }