mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-21 20:18:14 +07:00
Disabled bounds and path debugging by default
This commit is contained in:
parent
38242c6b7a
commit
0ce15351ed
@ -22,7 +22,7 @@ import gdx.diablo.graphics.PaletteIndexedBatch;
|
||||
|
||||
public class Animation extends BaseDrawable {
|
||||
private static final String TAG = "Animation";
|
||||
private static final int DEBUG_MODE = 1; // 0=off, 1=box, 2=layer box
|
||||
private static final int DEBUG_MODE = 0; // 0=off, 1=box, 2=layer box
|
||||
|
||||
private static final int NUM_LAYERS = 16;
|
||||
private static final float FRAMES_PER_SECOND = 25f;
|
||||
|
@ -479,7 +479,7 @@ public class Entity {
|
||||
public void drawDebugStatus(PaletteIndexedBatch batch, ShapeRenderer shapes) {
|
||||
float x = +(position.x * Tile.SUBTILE_WIDTH50) - (position.y * Tile.SUBTILE_WIDTH50);
|
||||
float y = -(position.x * Tile.SUBTILE_HEIGHT50) - (position.y * Tile.SUBTILE_HEIGHT50);
|
||||
if (animation != null && !(this instanceof Player) && isSelectable()) animation.drawDebug(shapes, x, y);
|
||||
if (animation != null && isSelectable()) animation.drawDebug(shapes, x, y);
|
||||
|
||||
shapes.setColor(Color.WHITE);
|
||||
MapRenderer.drawDiamond(shapes, x - Tile.SUBTILE_WIDTH50, y - Tile.SUBTILE_HEIGHT50, Tile.SUBTILE_WIDTH, Tile.SUBTILE_HEIGHT);
|
||||
|
@ -33,14 +33,14 @@ public class MapRenderer {
|
||||
private static final boolean DEBUG_MATH = DEBUG && !true;
|
||||
private static final boolean DEBUG_BUFFER = DEBUG && true;
|
||||
private static final boolean DEBUG_SUBTILE = DEBUG && true;
|
||||
private static final boolean DEBUG_TILE = DEBUG && true;
|
||||
private static final boolean DEBUG_TILE = DEBUG && !true;
|
||||
private static final boolean DEBUG_CAMERA = DEBUG && true;
|
||||
private static final boolean DEBUG_OVERSCAN = DEBUG && true;
|
||||
private static final boolean DEBUG_GRID = DEBUG && true;
|
||||
private static final boolean DEBUG_WALKABLE = DEBUG && !true;
|
||||
private static final boolean DEBUG_SPECIAL = DEBUG && true;
|
||||
private static final boolean DEBUG_MOUSE = DEBUG && true;
|
||||
private static final boolean DEBUG_PATHS = DEBUG && true;
|
||||
private static final boolean DEBUG_PATHS = DEBUG && !true;
|
||||
private static final boolean DEBUG_POPPADS = DEBUG && !true;
|
||||
private static final boolean DEBUG_ENTITIES = DEBUG && true;
|
||||
|
||||
|
@ -33,6 +33,7 @@ import gdx.diablo.codec.DC6;
|
||||
import gdx.diablo.codec.DCC;
|
||||
import gdx.diablo.codec.FontTBL;
|
||||
import gdx.diablo.codec.Palette;
|
||||
import gdx.diablo.codec.StringTBLs;
|
||||
import gdx.diablo.codec.TXT;
|
||||
import gdx.diablo.codec.excel.Excel;
|
||||
import gdx.diablo.entity.Entity;
|
||||
@ -112,6 +113,7 @@ public class MapViewer extends ApplicationAdapter {
|
||||
Diablo.fonts = new Fonts(assets);
|
||||
Diablo.colors = new Colors();
|
||||
Diablo.textures = new Textures();
|
||||
Diablo.string = new StringTBLs(resolver);
|
||||
Diablo.cofs = new COFs(assets);//COFD2.loadFromFile(resolver.resolve("data\\global\\cmncof_a1.d2"));
|
||||
|
||||
TXT txt = TXT.loadFromFile(Gdx.files.local("data/ds1types.txt"));
|
||||
@ -132,6 +134,9 @@ public class MapViewer extends ApplicationAdapter {
|
||||
mapRenderer = new MapRenderer(batch);
|
||||
mapRenderer.resize();
|
||||
|
||||
MapRenderer.RENDER_DEBUG_TILE = true;
|
||||
MapRenderer.RENDER_DEBUG_PATHS = true;
|
||||
|
||||
InputMultiplexer multiplexer = new InputMultiplexer();
|
||||
multiplexer.addProcessor(new InputAdapter() {
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user