Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone 7 WP7 XNA游戏开发中显示的内容?_Windows Phone 7_Windows Phone 7.1_Xna 4.0 - Fatal编程技术网

Windows phone 7 WP7 XNA游戏开发中显示的内容?

Windows phone 7 WP7 XNA游戏开发中显示的内容?,windows-phone-7,windows-phone-7.1,xna-4.0,Windows Phone 7,Windows Phone 7.1,Xna 4.0,在windows phone 7 emulator上显示内容时出现问题 如果您试图渲染任何精灵并运行项目。。。。精灵的形状不正确,但顺时针旋转。。。。此外仿真器假定,当仿真器处于纵向位置时,最右上方的坐标(0,0)不是最左上方的坐标(0,0),而是当仿真器处于横向位置时。。。它显示任何正确的内容。。。但如果我需要让我的游戏在纵向和横向运行。。。这是sdk中的一个缺陷吗。。。还是应该做点什么 谢谢。你可以在你的游戏构造器中写下这个,它会正确的出现 graphics.Pref

在windows phone 7 emulator上显示内容时出现问题

如果您试图渲染任何精灵并运行项目。。。。精灵的形状不正确,但顺时针旋转。。。。此外仿真器假定,当仿真器处于纵向位置时,最右上方的坐标(0,0)不是最左上方的坐标(0,0),而是当仿真器处于横向位置时。。。它显示任何正确的内容。。。但如果我需要让我的游戏在纵向和横向运行。。。这是sdk中的一个缺陷吗。。。还是应该做点什么


谢谢。

你可以在你的游戏构造器中写下这个,它会正确的出现

            graphics.PreferredBackBufferHeight = 800;
            graphics.PreferredBackBufferWidth = 480;