v0.6.0: removed more unneeded allocations

This commit is contained in:
Evan Debenham 2017-06-01 02:23:20 -04:00
parent 3baf1dc5e7
commit 6195a70ed7

View File

@ -218,12 +218,12 @@ public class ItemSprite extends MovieClip {
emitter = null;
}
private float[] shadowMatrix;
private float[] shadowMatrix = new float[16];
@Override
protected void updateMatrix() {
super.updateMatrix();
shadowMatrix = Matrix.clone(matrix);
Matrix.copy(matrix, shadowMatrix);
Matrix.translate(shadowMatrix,
(width() * (1f - shadowWidth)) / 2f,
(height() * (1f - shadowHeight)) + shadowOffset);