diff --git a/core/src/sagittarius/SagittariusGame.java b/core/src/sagittarius/SagittariusGame.java index 56a8639..4cc4ce6 100644 --- a/core/src/sagittarius/SagittariusGame.java +++ b/core/src/sagittarius/SagittariusGame.java @@ -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() { diff --git a/core/src/sagittarius/view/GameScreen.java b/core/src/sagittarius/view/GameScreen.java index b0671aa..9846f30 100644 --- a/core/src/sagittarius/view/GameScreen.java +++ b/core/src/sagittarius/view/GameScreen.java @@ -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);