From 6ca47f41e64f144a0c4166f027751c3e18424382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 12 May 2021 17:49:19 +0200 Subject: [PATCH] fix: drawing of debugInfos over the textures --- core/src/sagittarius/model/Arrow.java | 1 + core/src/sagittarius/model/Planet.java | 1 + core/src/sagittarius/model/Player.java | 1 + 3 files changed, 3 insertions(+) diff --git a/core/src/sagittarius/model/Arrow.java b/core/src/sagittarius/model/Arrow.java index ff6f239..c68aadf 100644 --- a/core/src/sagittarius/model/Arrow.java +++ b/core/src/sagittarius/model/Arrow.java @@ -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); } /** diff --git a/core/src/sagittarius/model/Planet.java b/core/src/sagittarius/model/Planet.java index ec66365..bfc82ee 100644 --- a/core/src/sagittarius/model/Planet.java +++ b/core/src/sagittarius/model/Planet.java @@ -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); } } diff --git a/core/src/sagittarius/model/Player.java b/core/src/sagittarius/model/Player.java index 14854cb..fd6afab 100644 --- a/core/src/sagittarius/model/Player.java +++ b/core/src/sagittarius/model/Player.java @@ -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