diff --git a/res/sounds/obtain.wav b/res/sounds/obtain.wav index 52bf579..135d5e3 100644 Binary files a/res/sounds/obtain.wav and b/res/sounds/obtain.wav differ diff --git a/src/entities/chest.js b/src/entities/chest.js index 6fdfa43..696939c 100644 --- a/src/entities/chest.js +++ b/src/entities/chest.js @@ -4,7 +4,8 @@ const { Texture, Sound, TileSprite, entity } = asdf; const texture = new Texture(__dirname + "/../../res/images/tilemap.png"); const sounds = { - forbidden: new Sound(__dirname + "/../../res/sounds/forbidden.wav") + forbidden: new Sound(__dirname + "/../../res/sounds/forbidden.wav"), + obtain: new Sound(__dirname + "/../../res/sounds/obtain.wav") }; const Pointer = require("./pointer.js"); @@ -67,6 +68,7 @@ class Chest extends TileSprite { this.state = state.open; this.pressed = true; this.action(); + sounds.obtain.play(); } else { if (!sounds.forbidden.playing && !this.pressed) { sounds.forbidden.play();