mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-19 16:57:20 +07:00
Added entity debug size support to monsters
This commit is contained in:
parent
274e756cce
commit
b9b74768ee
@ -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];
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user