effect when opponent miss the ship

This commit is contained in:
Tamino Mueller 2024-10-14 08:15:02 +02:00
parent 68beedcf29
commit 38979bdf86

View File

@ -1,7 +1,8 @@
/*
package pp.battleship.game.client; package pp.battleship.game.client;
import com.simsilica.lemur.Slider;
public class VolumeSlider extends Slider{
public class VolumeSlider extends Slider {
private final GameMusic music; private final GameMusic music;
@ -17,10 +18,8 @@ public class VolumeSlider extends Slider{
public void update() { public void update() {
if (vol != getModel().getPercent()) { if (vol != getModel().getPercent()) {
vol = getModel().getPercent(); vol = getModel().getPercent();
music.setVolume( (float) vol); music.setVolume((float) vol);
} }
} }
}
} }
*/