summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-16 11:04:43 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-16 11:04:43 +0100
commit8d91f62423e6e7b7914666fd4d43b41e6ff098bd (patch)
treef7945f71ab2fadf8f824ccc3fc6c4f58d3ff05fb /core/src/ch
parent42cf181513e5d10529e7c56b1407c05a1f570fe1 (diff)
downloadRustAndDust-8d91f62423e6e7b7914666fd4d43b41e6ff098bd.zip
RustAndDust-8d91f62423e6e7b7914666fd4d43b41e6ff098bd.tar.gz
HeadedPawn: draw the head over the body
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/HeadedPawn.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/HeadedPawn.java b/core/src/ch/asynk/rustanddust/engine/HeadedPawn.java
index f982cd1..c26610f 100644
--- a/core/src/ch/asynk/rustanddust/engine/HeadedPawn.java
+++ b/core/src/ch/asynk/rustanddust/engine/HeadedPawn.java
@@ -79,16 +79,16 @@ public abstract class HeadedPawn extends Pawn
@Override
public void draw(Batch batch)
{
- head.draw(batch);
super.draw(batch);
+ head.draw(batch);
}
@Override
public void drawDebug(ShapeRenderer debugShapes)
{
+ super.drawDebug(debugShapes);
float w = head.getWidth();
float h = head.getHeight();
debugShapes.rect(head.getX(), head.getY(), (w / 2f), (h / 2f), w, h, head.getScaleX(), head.getScaleY(), head.getRotation());
- super.drawDebug(debugShapes);
}
}