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

            m_CurrentGameState = GameState.Game;
            m_InputHandler = new InputHandler(4);

            m_MenuState = new StateMenu("Menu");

            m_Sprites = new Dictionary<string, Texture2D>();
            m_Fonts = new Dictionary<string, SpriteFont>();

            INSTANCE = this;
        }