public class DebugOverlay
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.badlogic.gdx.graphics.g2d.BitmapFont |
font
This is to store the font that the debug screen is written in
|
private static com.badlogic.gdx.graphics.g2d.Sprite |
greenSprite
This is to store the green tile overlay sprite
|
private static com.badlogic.gdx.graphics.g2d.Sprite |
redSprite
This is to store the red tile overlay sprite
|
private static com.badlogic.gdx.graphics.g2d.Sprite |
yellowSprite
This is to store the yellow tile overlay sprite
|
Constructor and Description |
---|
DebugOverlay() |
Modifier and Type | Method and Description |
---|---|
static com.badlogic.gdx.graphics.g2d.Sprite |
getColoredTileSprite(com.badlogic.gdx.graphics.Color color)
This method returns a tile overlay of the specified color
|
static void |
renderDebugInfo(com.badlogic.gdx.graphics.g2d.Batch batch)
This method draws the debug menu to the batch
|
static void |
renderDebugTiles(Room room,
com.badlogic.gdx.graphics.g2d.Batch batch)
This method draws overlays on the tiles to display whether a tile is both walkable and hideable
|
private static com.badlogic.gdx.graphics.g2d.Sprite greenSprite
private static com.badlogic.gdx.graphics.g2d.Sprite redSprite
private static com.badlogic.gdx.graphics.g2d.Sprite yellowSprite
private static com.badlogic.gdx.graphics.g2d.BitmapFont font
public static void renderDebugInfo(com.badlogic.gdx.graphics.g2d.Batch batch)
batch
- - The batch to draw the menu onpublic static void renderDebugTiles(Room room, com.badlogic.gdx.graphics.g2d.Batch batch)
room
- - The room we are drawing onbatch
- - The batch to draw the tile overlays ontopublic static com.badlogic.gdx.graphics.g2d.Sprite getColoredTileSprite(com.badlogic.gdx.graphics.Color color)
color
- - The color to set the sprite