started inventory saving

This commit is contained in:
2025-12-16 21:07:35 +01:00
parent befb117d85
commit 70eaa9514a
3 changed files with 5 additions and 4 deletions

View File

@@ -106,8 +106,8 @@ public class EventHandler {
panel.gameState = GameState.DIALOGUE;
panel.player.attackCancel = true;
panel.playSE(2);
panel.ui.currentDialogue = "You drank the holy water.\nYour life has been recovered!\nYou progress has been saved.";
panel.player.life = panel.player.maxLife;
panel.ui.currentDialogue = "You saved your progress!";
//panel.player.life = panel.player.maxLife;
canTouchEvent = false;
panel.assetSetter.setMonster();
try {

View File

@@ -39,6 +39,7 @@ public class KeyHandler implements KeyListener {
System.out.printf("Loading config...%n");
try {
panel.config.load();
panel.saveLoad.load();
panel.gameState = GameState.PLAY;
panel.playMusic(0);
} catch (Exception e) {