fix: drawing of debugInfos over the textures

This commit is contained in:
Laureηt 2021-05-12 17:49:19 +02:00
parent fb1a181b9e
commit 6ca47f41e6
3 changed files with 3 additions and 0 deletions

View file

@ -86,6 +86,7 @@ public class Arrow extends EntityQuad {
public void draw (Batch batch, float parentAlpha) {
batch.draw(texture, getPosition().x - 0.8f * getWidth(), getPosition().y - getHeight()/2 - 10, 0.8f * this.getWidth(), this.getHeight()/2 + 10, getWidth(), 20 + getHeight(),
1, 1, getRotation(), 0, 0, texture.getWidth(), texture.getHeight(), false, false);
super.draw(batch, parentAlpha);
}
/**

View file

@ -41,6 +41,7 @@ public class Planet extends EntityCircle {
public void draw (Batch batch, float parentAlpha) {
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);
super.draw(batch, parentAlpha);
}
}

View file

@ -43,6 +43,7 @@ public class Player extends EntityQuad {
public void draw (Batch batch, float parentAlpha) {
batch.draw(texture, getPosition().x - getWidth()/2, getPosition().y - getHeight()/2, this.getWidth()/2, this.getHeight()/2, getWidth(), getHeight(),
1, 1, getRotation(), 0, 0, texture.getWidth(), texture.getHeight(), false, false);
super.draw(batch, parentAlpha);
}
@Override