la texture suit la rotation de la planet
This commit is contained in:
parent
a5d379fa82
commit
d00d4f1619
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue