NASA de retour
This commit is contained in:
commit
767d23c0d6
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue