fix: moved G in SagittariusGame

This commit is contained in:
Laureηt 2021-04-09 16:28:37 +02:00
parent 26e3b5f9ad
commit c70d2beace
2 changed files with 7 additions and 5 deletions

View file

@ -7,6 +7,9 @@ import sagittarius.view.GameScreen;
public class SagittariusGame extends Game {
// Constants
public static final int G = 100;
private static SagittariusGame game;
public SagittariusGame() {

View file

@ -12,14 +12,14 @@ public class GameScreen extends BaseScreen {
// ---------- ATTRIBUTEs ----------
// Constants
public static final int G = 100;
// Cursors
public static Vector2 screenCursor;
private static Vector3 unprojectedCursor;
public static Vector2 worldCursor;
// planets = attractors for arrows
public static Group planets; // TODO: move this in SagittariusGame ?
// ---------- METHODs ----------
@Override
@ -28,8 +28,7 @@ public class GameScreen extends BaseScreen {
mainStage.setDebugAll(true); // TODO: disable later
// planets
Group planets = new Group();
planets = new Group();
Planet planet1 = new Planet(new Vector2(400, 400), 1000, 50, Color.BLUE);
planets.addActor(planet1);