fix: moved G in SagittariusGame
This commit is contained in:
parent
26e3b5f9ad
commit
c70d2beace
|
@ -7,6 +7,9 @@ import sagittarius.view.GameScreen;
|
||||||
|
|
||||||
public class SagittariusGame extends Game {
|
public class SagittariusGame extends Game {
|
||||||
|
|
||||||
|
// Constants
|
||||||
|
public static final int G = 100;
|
||||||
|
|
||||||
private static SagittariusGame game;
|
private static SagittariusGame game;
|
||||||
|
|
||||||
public SagittariusGame() {
|
public SagittariusGame() {
|
||||||
|
|
|
@ -12,14 +12,14 @@ public class GameScreen extends BaseScreen {
|
||||||
|
|
||||||
// ---------- ATTRIBUTEs ----------
|
// ---------- ATTRIBUTEs ----------
|
||||||
|
|
||||||
// Constants
|
|
||||||
public static final int G = 100;
|
|
||||||
|
|
||||||
// Cursors
|
// Cursors
|
||||||
public static Vector2 screenCursor;
|
public static Vector2 screenCursor;
|
||||||
private static Vector3 unprojectedCursor;
|
private static Vector3 unprojectedCursor;
|
||||||
public static Vector2 worldCursor;
|
public static Vector2 worldCursor;
|
||||||
|
|
||||||
|
// planets = attractors for arrows
|
||||||
|
public static Group planets; // TODO: move this in SagittariusGame ?
|
||||||
|
|
||||||
// ---------- METHODs ----------
|
// ---------- METHODs ----------
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -28,8 +28,7 @@ public class GameScreen extends BaseScreen {
|
||||||
mainStage.setDebugAll(true); // TODO: disable later
|
mainStage.setDebugAll(true); // TODO: disable later
|
||||||
|
|
||||||
// planets
|
// planets
|
||||||
|
planets = new Group();
|
||||||
Group planets = new Group();
|
|
||||||
|
|
||||||
Planet planet1 = new Planet(new Vector2(400, 400), 1000, 50, Color.BLUE);
|
Planet planet1 = new Planet(new Vector2(400, 400), 1000, 50, Color.BLUE);
|
||||||
planets.addActor(planet1);
|
planets.addActor(planet1);
|
||||||
|
|
Loading…
Reference in a new issue