deso pour le print
This commit is contained in:
parent
b959cc3fa7
commit
cdb987a253
|
@ -77,7 +77,7 @@ public class Player extends EntityQuad {
|
||||||
T++;
|
T++;
|
||||||
T %= 100;
|
T %= 100;
|
||||||
int i = (int) (T * ((float) texture.size() / 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(),
|
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);
|
1, 1, getRotation(), 0, 0, texture.get(i).getWidth(), texture.get(i).getHeight(), false, false);
|
||||||
super.draw(batch, parentAlpha);
|
super.draw(batch, parentAlpha);
|
||||||
|
|
Loading…
Reference in a new issue