This commit is contained in:
heurtet 2021-05-14 11:58:02 +02:00
commit f42d785de4

View file

@ -77,7 +77,7 @@ public class Player extends EntityQuad {
T++;
T %= 100;
int i = (int) (T * ((float) texture.size() / 100));
System.out.println(i);
batch.draw(texture.get(i), getPosition().x - getWidth()/2, getPosition().y - getHeight()/2, getWidth()/2, getHeight()/2, getWidth(), getHeight(),
1, 1, getRotation(), 0, 0, texture.get(i).getWidth(), texture.get(i).getHeight(), false, false);
super.draw(batch, parentAlpha);