Beispiel #1
0
        public Game1()
        {
            vSettings = new GameVideoSettings();
            graphics  = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = (int)vSettings.windowSize.X;
            graphics.PreferredBackBufferHeight = (int)vSettings.windowSize.Y;

            IsFixedTimeStep = false;
            graphics.SynchronizeWithVerticalRetrace = vSettings.vSync;
            TargetElapsedTime = vSettings.frameRate;

            this.IsMouseVisible = true;

            Content.RootDirectory = "Content";
        }
Beispiel #2
0
 public virtual void Draw(SpriteBatch sb, GameVideoSettings vSettings)
 {
 }
Beispiel #3
0
 public void Draw(SpriteBatch sb, GameVideoSettings vSettings)
 {
     currentScene.Draw(sb, vSettings);
 }