diff --git a/core/src/sagittarius/SagittariusGame.java b/core/src/sagittarius/SagittariusGame.java index f07989a..5e417c1 100644 --- a/core/src/sagittarius/SagittariusGame.java +++ b/core/src/sagittarius/SagittariusGame.java @@ -9,7 +9,7 @@ public class SagittariusGame extends Game { // Constants public static float G = 100; - public static boolean debugMode = true; + public static boolean debugMode = false; private static Game game; diff --git a/core/src/sagittarius/model/Bow.java b/core/src/sagittarius/model/Bow.java index cd41593..79fb42d 100644 --- a/core/src/sagittarius/model/Bow.java +++ b/core/src/sagittarius/model/Bow.java @@ -45,7 +45,7 @@ public class Bow extends Actor { } else if (pressed && power > 50) { pressed = false; GameScreen.playerCurrent.setActive(false); - Arrow arrowShot = new Arrow(angle, power, GameScreen.playerCurrent); + Arrow arrowShot = new Arrow(angle, power, GameScreen.playerCurrent, false); GameScreen.setFocus(arrowShot); // do not use constructor 2 times GameScreen.arrows.addActor(arrowShot); } else { diff --git a/core/src/sagittarius/view/GameScreen.java b/core/src/sagittarius/view/GameScreen.java index 1da58eb..06d828e 100644 --- a/core/src/sagittarius/view/GameScreen.java +++ b/core/src/sagittarius/view/GameScreen.java @@ -50,6 +50,10 @@ public class GameScreen extends BaseScreen implements InputProcessor { Gdx.input.setInputProcessor(this); + // arrows + arrows = new Group(); + mainStage.addActor(arrows); + // planets & moons attractors = new Group(); @@ -81,10 +85,6 @@ public class GameScreen extends BaseScreen implements InputProcessor { mainStage.addActor(players); - // arrows - arrows = new Group(); - mainStage.addActor(arrows); - // The one and only Bow Bow bow = new Bow(true); mainStage.addActor(bow);