libgdx powered iOS game not fullscreen on iOS simulator

允我心安 提交于 2019-12-08 09:54:20

问题


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.

But there is a space on the right on iOS simulator. It doesn't fit to the screen.

I'm very new to iOS, so could you tell me where to look at?

EDIT:
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:


Okay, newly release of 1.4.1 solved the problem. In case, someone doesn't know how to update libgdx.

  1. Open build.gradle at an application root.
  2. Change gdxVersion to '1.4.1'
  3. Change roboVMVersion to '1.0.0-alpha-04'

I think you should also check https://github.com/libgdx/libgdx/blob/master/CHANGES for roboVM version libgdx uses.



来源:https://stackoverflow.com/questions/26162260/libgdx-powered-ios-game-not-fullscreen-on-ios-simulator

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!