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

            instance = this;

            PartyUtils.loadPartyMembers();
            sceneManager = new SceneManager(this);

            // Set default window properties
            graphics.PreferredBackBufferWidth = SCREEN_WIDTH;
            graphics.PreferredBackBufferHeight = SCREEN_HEIGHT;
        }