diff --git a/core/src/com/me/pacman/state/MenuState.java b/core/src/com/me/pacman/state/MenuState.java index 8a83450..c4751ff 100644 --- a/core/src/com/me/pacman/state/MenuState.java +++ b/core/src/com/me/pacman/state/MenuState.java @@ -7,6 +7,7 @@ import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.me.pacman.PacDude; +import com.me.pacman.Sound; public class MenuState extends LevelState { @@ -41,6 +42,8 @@ public class MenuState extends LevelState { font = game.assets.getFont(); Gdx.input.setInputProcessor(this.new Controller()); + + game.sound.play(Sound.Effect.BEGINNING); } @Override @@ -65,9 +68,11 @@ public class MenuState extends LevelState { switch (keycode) { case Input.Keys.UP: selectedOption = selectedOption > 0 ? --selectedOption : options.length - 1; + game.sound.play(Sound.Effect.CHOMP_1); break; case Input.Keys.DOWN: selectedOption = selectedOption < options.length - 1 ? ++selectedOption : 0; + game.sound.play(Sound.Effect.CHOMP_2); break; case Input.Keys.ENTER: switch (selectedOption) {