added coordinates and map tile position to debug mode
This commit is contained in:
@@ -146,10 +146,13 @@ public class GamePanel extends JPanel implements Runnable {
|
||||
|
||||
// DEBUG
|
||||
if(keyH.debug) {
|
||||
int start = 350;
|
||||
graphics2d.setColor(Color.white);
|
||||
graphics2d.drawString("Draw Time: " + passed, 10, 400);
|
||||
graphics2d.drawString("FPS: " + fpsMeasure, 10, 400+tileSize);
|
||||
graphics2d.drawString("Invincible: " + player.invincibleCount, 10, 400+tileSize*2);
|
||||
graphics2d.drawString("Draw Time: " + passed, 10, start);
|
||||
graphics2d.drawString("FPS: " + fpsMeasure, 10, start+tileSize);
|
||||
graphics2d.drawString("Invincible: " + player.invincibleCount, 10, start+tileSize*2);
|
||||
graphics2d.drawString("X, Y: " + player.worldX+", "+player.worldY, 10, start+tileSize*3);
|
||||
graphics2d.drawString("Col, Row: " + (player.worldX+player.solidArea.x)/tileSize+", "+(player.worldY+player.solidArea.y)/tileSize, 10, start+tileSize*4);
|
||||
Boot.logger.log(Level.FINE, "Draw Time: " + passed);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user