la texture suit la rotation de la planet

This commit is contained in:
Damien 2021-05-12 13:57:49 +02:00
parent a5d379fa82
commit d00d4f1619

View file

@ -39,7 +39,8 @@ public class Planet extends EntityCircle {
@Override
public void draw (Batch batch, float parentAlpha) {
batch.draw(texture, getPosition().x - this.radius, getPosition().y - this.radius, 2 * this.radius, 2 * this.radius);
batch.draw(texture, getPosition().x - this.radius, getPosition().y - this.radius, this.radius, this.radius, 2 * this.radius, 2 * this.radius,
1, 1, getRotation(), 0, 0, texture.getWidth(), texture.getHeight(), false, false);
}
}