且构网

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

Libgdx相机/缩放问题

更新时间:2023-11-02 09:49: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/视口