|
@@ -62,6 +62,11 @@ public class PlayerRenderer
|
|
|
//stand still
|
|
|
yIndex = 0;
|
|
|
}
|
|
|
+
|
|
|
+ float viewScale = r.getViewScale();
|
|
|
+ ix = (int) (ix * viewScale) / viewScale;
|
|
|
+ iy = (int) (iy * viewScale) / viewScale;
|
|
|
+
|
|
|
r.getTextureRenderer().drawRectangle(ix, iy, ix + playerSize, iy + playerSize,
|
|
|
tIndex * 0.25f, yIndex * 0.25f, (tIndex + 1) * 0.25f, yIndex * 0.25f + 0.25f);
|
|
|
}
|