public Game1() graphics = new GraphicsDeviceManager(this); Content.RootDirectory = Content; graphics.PreferredBackBufferHeight = 800;/設定遊戲視窗的高度為800 graphics.PreferredBackBufferWidth = 480;/設定遊戲視窗的寬度為480 TargetElapsedTime = TimeSpan.FromTicks();设定妥游戏窗口的高度和宽度之后请编辑 Game1 类别的 LoadContent 方法,负责加载游戏程序欲使用的资源,编辑好的 LoadContent 方法如下:protected override void LoadContent() spriteBatch = new SpriteBatch(GraphicsDevice); Mario = Content.LoadTexture2D