在iOS模拟器上libgdx驱动的iOS游戏未全屏 [英] libgdx powered iOS game not fullscreen on iOS simulator
问题描述
我使用libgdx 1.2.0制作了一款手机游戏,并且Android可以完美运行,但是当我在iOS模拟器(iPhone 5,iOS 8)上运行该游戏时,该游戏无法正常绘制.
I built a mobile game with libgdx 1.2.0 and Android works perfectly, but when I run the game on iOS simulator (iPhone 5, iOS 8) , it doesn't draw properly.
应该这样绘制.
It's supposed to draw like this.
但是iOS模拟器右侧有一个空格.它不适合屏幕.
But there is a space on the right on iOS simulator. It doesn't fit to the screen.
我对iOS还是很陌生,所以你能告诉我在哪里看吗?
I'm very new to iOS, so could you tell me where to look at?
根据此问题, https://github.com/libgdx/libgdx/issues/2386似乎我需要最新的快照才能解决此问题.我不知道如何使用最新的快照,因此我将等待发布.一旦获得新版本的libgdx,我将更新此问题.
According to this issue https://github.com/libgdx/libgdx/issues/2386 it seems I need the latest snapshot to fix this. I don't know how to work with the latest snapshot, so I'll wait for it by released. I'll update this question once I get the new version of libgdx.
推荐答案
好的,新发布的1.4.1解决了该问题.如果有人不知道如何更新libgdx.
Okay, newly release of 1.4.1 solved the problem. In case, someone doesn't know how to update libgdx.
- 在应用程序根目录下打开build.gradle.
- 将gdxVersion更改为"1.4.1"
- 将roboVMVersion更改为"1.0.0-alpha-04"
我认为您还应该检查 https://github.com/libgdx/libgdx/blob/master/CHANGES 用于libgdx使用的roboVM版本.
I think you should also check https://github.com/libgdx/libgdx/blob/master/CHANGES for roboVM version libgdx uses.
这篇关于在iOS模拟器上libgdx驱动的iOS游戏未全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!