Beispiel #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PulseGame game = new PulseGame())
     {
         game.Run();
     }
 }
Beispiel #2
0
        public PulseGame()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferHeight = 700;    // height of screen
            graphics.PreferredBackBufferWidth  = 1200;   // width of screen
            graphics.IsFullScreen = false;
            graphics.ApplyChanges();
            Content.RootDirectory = "Content";

            windowWidth  = Window.ClientBounds.Width;
            windowHeight = Window.ClientBounds.Height;

            Components.Add(effectComponent = new EffectComponent(this));

            Current = this;
        }