v0.3.2: fixed a bug where non-integer values for sx and sy caused some tile map issues

This commit is contained in:
Evan Debenham
2015-09-22 03:45:07 -04:00
parent d17108e37f
commit 5f09d23ea0
@@ -265,8 +265,8 @@ public class PixelScene extends Scene {
@Override
protected void updateMatrix() {
float sx = scroll.x + shakeX;
float sy = scroll.y + shakeY;
float sx = Math.round(scroll.x + shakeX);
float sy = Math.round(scroll.y + shakeY);
matrix[0] = +zoom * invW2;
matrix[5] = -zoom * invH2;