refactor debug display logic in Lighting.java to conditionally show day state
This commit is contained in:
@@ -24,6 +24,7 @@ public class Lighting {
|
||||
g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1F));
|
||||
|
||||
// DEBUG
|
||||
if(panel.keyH.debug) {
|
||||
String s;
|
||||
switch (dayState) {
|
||||
case DAY -> s = "DAY";
|
||||
@@ -36,6 +37,7 @@ public class Lighting {
|
||||
g2.setFont(g2.getFont().deriveFont(50f));
|
||||
g2.drawString(s, 800, 500);
|
||||
}
|
||||
}
|
||||
public void update() {
|
||||
if(panel.player.lightUpdated) {
|
||||
setLightSource();
|
||||
|
||||
Reference in New Issue
Block a user