added soundeffects

This commit is contained in:
2025-11-27 17:30:48 +01:00
parent 7502771f61
commit 27ea2cb6d5

View File

@@ -95,17 +95,20 @@ public class Player extends Entity {
if(index == 999) return; if(index == 999) return;
switch(panel.obj[index].name.toLowerCase()) { switch(panel.obj[index].name.toLowerCase()) {
case "key": case "key":
panel.playSE(1);
hasKey++; hasKey++;
panel.obj[index] = null; panel.obj[index] = null;
break; break;
case "door": case "door":
if(hasKey > 0) { if(hasKey > 0) {
panel.playSE(3);
panel.obj[index] = null; panel.obj[index] = null;
hasKey--; hasKey--;
} }
break; break;
case "boots": case "boots":
speed += 1; panel.playSE(2);
speed += 1;
panel.obj[index] = null; panel.obj[index] = null;
break; break;
} }