且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Libgdx 相机/缩放问题

更新时间:2023-11-02 10:29:58

问题是您的资产与视口大小不同.请参阅下面的链接.Libgdx 使用 Viewport 类来处理这个问题.

The problem is your asset is not the same size as the viewport. See the links below. Libgdx uses the Viewport class to handle this.

如何处理libGDX中不同的纵横比?

如何根据不同缩放图片libgdx 中的屏幕分辨率

https://github.com/libgdx/libgdx/wiki/Viewports