les tailles sont bonnes
This commit is contained in:
parent
4b5dbff4a4
commit
474b8fc5e7
|
@ -11,12 +11,13 @@ public class Planet extends EntityCircle {
|
||||||
// ---------- ATTRIBUTEs ----------
|
// ---------- ATTRIBUTEs ----------
|
||||||
|
|
||||||
float revolutionRate = MathUtils.randomTriangular(1) + 1;
|
float revolutionRate = MathUtils.randomTriangular(1) + 1;
|
||||||
Texture texture = new Texture("core/assets/planet1.png");
|
Texture texture;
|
||||||
|
|
||||||
// ---------- CONSTRUCTORs ----------
|
// ---------- CONSTRUCTORs ----------
|
||||||
|
|
||||||
public Planet(Vector2 position, float mass, float radius, Color color) {
|
public Planet(Vector2 position, float mass, float radius, Color color) {
|
||||||
super(0, mass, color, position, radius);
|
super(0, mass, color, position, radius);
|
||||||
|
this.texture = new Texture("core/assets/planet1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------- METHODs ----------
|
// ---------- METHODs ----------
|
||||||
|
@ -38,7 +39,7 @@ public class Planet extends EntityCircle {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw (Batch batch, float parentAlpha) {
|
public void draw (Batch batch, float parentAlpha) {
|
||||||
batch.draw(texture, getPosition().x - this.radius, getPosition().y - this.radius);
|
batch.draw(texture, getPosition().x - this.radius, getPosition().y - this.radius, 2 * this.radius, 2 * this.radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue