我正在使用LibGdx和Tiled,当在屏幕上移动时,游戏中会出现水平和垂直线条。如果需要,我可以发布任何您需要的代码。如何让这些线停止出现?
http://gfycat.com/FastUnnaturalAmericanwirehair
编辑:
这是一个很小的Bitbucket存储库,我尽可能地将其缩小,其中包含相同的故障:
我正在使用LibGdx和Tiled,当在屏幕上移动时,游戏中会出现水平和垂直线条。如果需要,我可以发布任何您需要的代码。如何让这些线停止出现?
http://gfycat.com/FastUnnaturalAmericanwirehair
编辑:
这是一个很小的Bitbucket存储库,我尽可能地将其缩小,其中包含相同的故障:
gameCam.position.x = (float) Math.round(player.b2body.getPosition().x * 100f) / 100f;
position.x = Math.round(position.x * 10) / 10f;
position.y = Math.round(position.y * 10) / 10f;
- Ilya Gazman