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

Scaling the Platformer Sample

Last post 7/31/2009 4:15 AM by Remyremrem. 1 replies.
  • 7/31/2009 3:53 AM

    Scaling the Platformer Sample

    I need to scale the platformer sample, and when I scale it for SDTVs it only displays the upper left corner and I can’t even see the ground tiles.

    How should I change my code so everything squeezes onto the screen?

    Also I’m using the scale screen sample from MSDN’s website

  • 7/31/2009 4:15 AM In reply to

    Re: Scaling the Platformer Sample

    Try setting the back buffer.

       public Game1() 
            { 
                 
                graphics = new GraphicsDeviceManager(this); 
                Content.RootDirectory = "Content"
                // add this ----------------------- 
                graphics.PreferredBackBufferWidth = 1280; 
                graphics.PreferredBackBufferHeight = 720; 
                graphics.ApplyChanges(); 
                // add this ------------------------ 
              
            } 

Page 1 of 1 (2 items) Previous Next