0

我还没有找到任何好的教程来制作全屏游戏,同时保持纵横比。用文字来描述对我来说有点困难,所以我将用两张图片向您展示。

我目前拥有的:
https ://dl.dropbox.com/u/51911679/Pictures/Whocares/Screenshots/whatIgot.jpg

我想要什么:
https ://dl.dropbox.com/u/51911679/Pictures/Whocares/Screenshots/whatIwant.jpg

4

1 回答 1

2

GraphicsDeviceManager课程可以为您处理大部分内容:

    public Game1()
    {
        graphics = new GraphicsDeviceManager(this);
        graphics.IsFullScreen = true;
        graphics.PreferredBackBufferWidth = 1280;
        graphics.PreferredBackBufferHeight = 720;

        //...
    }

现在,您必须确保您实际上是在您的SpriteBatch坐标中绘制整个屏幕(基于您的宽度和高度)。

于 2013-04-09T02:51:31.877 回答