Added entity debug size support to monsters

This commit is contained in:
Collin Smith 2019-05-03 18:11:00 -07:00
parent 274e756cce
commit b9b74768ee
2 changed files with 2 additions and 0 deletions

View File

@ -494,6 +494,7 @@ public abstract class Entity implements Animation.AnimationListener {
}
public void drawDebugSize(ShapeRenderer shapes) {
if (size < 1) return;
shapes.set(ShapeRenderer.ShapeType.Filled);
shapes.setColor(Color.GRAY);
int[][] SIZE = SIZES[size - 1];

View File

@ -90,6 +90,7 @@ public class Monster extends Entity {
setMode(monstats.spawnmode.isEmpty() ? MODE_NU : (byte) Riiablo.files.MonMode.index(monstats.spawnmode));
setWalkSpeed(monstats.Velocity);
setRunSpeed(monstats.Run);
setSize(monstats2.SizeX); // assert SizeX == SizeY
for (byte i = 0; i < monstats2.ComponentV.length; i++) {
String ComponentV = monstats2.ComponentV[i];
if (!ComponentV.isEmpty()) {