XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

game window size

Last post 11/18/2009 9:30 AM by TheHomicidal. 2 replies.
  • 11/17/2009 11:33 PM

    game window size

    how do i set the size of the game window?
  • 11/17/2009 11:56 PM In reply to

    Re: game window size

    set graphics.PreferredBackBufferWidth/Height in your Game constructor.
    Game hobbyist hell-bent on coding a diabolical Matrix
  • 11/18/2009 9:30 AM In reply to

    Re: game window size

    Like this:

    public Game1() 
            { 
                graphics = new GraphicsDeviceManager(this); 
                graphics.PreferredBackBufferHeight = 600; 
                graphics.PreferredBackBufferWidth = 1024; 
                Content.RootDirectory = "Content"
            } 

    A forum dedicated to creating XNA games for PC: http://www.xna-pc.tk
Page 1 of 1 (3 items) Previous Next