added soundeffects
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user