Ejemplo n.º 1
0
        public Bloodbender()
        {
            ptr = this;

            rdn = new Random();

            mouse    = Mouse.GetState();
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";


            graphics.PreferredBackBufferWidth  = width;
            graphics.PreferredBackBufferHeight = height;

            //graphics.HardwareModeSwitch = false;

            //graphics.SynchronizeWithVerticalRetrace = false;
            //IsFixedTimeStep = false;

            //graphics.IsFullScreen = true;

            resolutionIndependence = new ResolutionIndependentRenderer(this);
        }
Ejemplo n.º 2
0
 static void Main()
 {
     using (var game = new Bloodbender())
         game.Run();
 }