From c70d2beace8ca8b51a50e06d1f7a92ba687d71a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 9 Apr 2021 16:28:37 +0200 Subject: [PATCH] fix: moved G in SagittariusGame --- core/src/sagittarius/SagittariusGame.java | 3 +++ core/src/sagittarius/view/GameScreen.java | 9 ++++----- 2 files changed, 7 insertions(+), 5 deletions(-) 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);