diff --git a/core/src/com/trs/game/Controller.java b/core/src/com/trs/game/Controller.java index ddffc0f..bfbcef9 100644 --- a/core/src/com/trs/game/Controller.java +++ b/core/src/com/trs/game/Controller.java @@ -237,6 +237,14 @@ public class Controller extends ApplicationAdapter implements InputProcessor { case 6: difficulty = 4; break; + case 7: + if(volume > 0.1) volume -= 0.1; + screen.setVolume(volume); + break; + case 8: + if(volume < 0.9) volume += 0.1; + screen.setVolume(volume); + break; } } diff --git a/core/src/com/trs/game/model/Model.java b/core/src/com/trs/game/model/Model.java index 6ee6345..1d77ddc 100644 --- a/core/src/com/trs/game/model/Model.java +++ b/core/src/com/trs/game/model/Model.java @@ -78,7 +78,7 @@ public class Model { } } public void finishWall(int x, int y){ - if(Vector2.dst(tempStart.x,tempStart.y,x,y) > 150) { + if(Vector2.dst(tempStart.x,tempStart.y,x,y) > 50) { double angle = StaticMath.calculateAngle(x,y,(int)tempStart.x,(int)tempStart.y); tempPolygon = StaticMath.createPolygon((int)tempStart.x, (int)tempStart.y, angle-Math.PI,10,Vector2.dst(tempStart.x,tempStart.y,x,y)); diff --git a/core/src/com/trs/game/view/Screens/EndScreen.java b/core/src/com/trs/game/view/Screens/EndScreen.java index d579eab..0cdbc58 100644 --- a/core/src/com/trs/game/view/Screens/EndScreen.java +++ b/core/src/com/trs/game/view/Screens/EndScreen.java @@ -42,6 +42,11 @@ public class EndScreen extends Screen { buttons.add(new Button(4,710,100,210,50,"Medium",Color.GRAY,Color.BLUE)); buttons.add(new Button(5,920,100,210,50,"Hard",Color.DARK_GRAY,Color.WHITE)); buttons.add(new Button(6,1130,100,210,50,"Impossible",Color.GRAY,Color.WHITE)); + + texts.add(new Text(50,845, "Volume:", Color.BLACK,1,0,0)); + + buttons.add(new Button(7,100,830,35,35,"-",Color.DARK_GRAY,Color.WHITE)); + buttons.add(new Button(8,140,830,35,35,"+",Color.DARK_GRAY,Color.WHITE)); } @Override diff --git a/core/src/com/trs/game/view/Screens/MainMenuScreen.java b/core/src/com/trs/game/view/Screens/MainMenuScreen.java index 8e6503f..1978352 100644 --- a/core/src/com/trs/game/view/Screens/MainMenuScreen.java +++ b/core/src/com/trs/game/view/Screens/MainMenuScreen.java @@ -29,6 +29,11 @@ public class MainMenuScreen extends Screen { buttons.add(new Button(4,710,100,210,50,"Medium",Color.GRAY,Color.BLUE)); buttons.add(new Button(5,920,100,210,50,"Hard",Color.DARK_GRAY,Color.WHITE)); buttons.add(new Button(6,1130,100,210,50,"Impossible",Color.GRAY,Color.WHITE)); + + texts.add(new Text(50,845, "Volume:", Color.BLACK,1,0,0)); + + buttons.add(new Button(7,100,830,35,35,"-",Color.DARK_GRAY,Color.WHITE)); + buttons.add(new Button(8,140,830,35,35,"+",Color.DARK_GRAY,Color.WHITE)); } @Override