refactor collision handling and improve game state reset functionality

This commit is contained in:
2026-03-24 13:34:52 +01:00
parent f44e5478ab
commit 07549cf241
5 changed files with 22 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ public class UI {
private int transCount;
private int sleepCount;
private int charIndex;
private String combinedText = "";
private String combinedText;
// SUB-STATES
public TradeState tradeState = TradeState.SELECT;
@@ -757,7 +757,6 @@ public class UI {
if(commandNum == 1) {
graphics2d.drawString(">", textX-25, textY);
if(panel.keyH.spacePressed) optionState = OptionState.OVERVIEW;
panel.resetGame(true);
}
}