Adjusted tthe logic of the server and client

when the client sends a wrong map the server will send the client back to the editro state
This commit is contained in:
Hanno Fleischer hanno.fleischer@unibw.de
2024-10-05 12:35:49 +02:00
parent 0f629252bc
commit dca0875ad5
5 changed files with 20 additions and 1 deletions

View File

@@ -57,6 +57,8 @@ public Menu(BattleshipApp app) {
addChild(musicToggle);
addChild(new Label(lookup("menu.volume")));
Slider volumeSlider = new Slider();
volumeSlider.setModel(new DefaultRangedValueModel(0.0 , 2.0, app.getBackgroundMusic().getVolume()));
volumeSlider.setDelta(0.1);