From afb5c05a605112b7490d70fece7a32658044bec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 9 Apr 2021 15:10:39 +0200 Subject: [PATCH] feat: added a Moon to the level --- core/src/sagittarius/view/GameScreen.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/sagittarius/view/GameScreen.java b/core/src/sagittarius/view/GameScreen.java index b5fcb62..7390d90 100644 --- a/core/src/sagittarius/view/GameScreen.java +++ b/core/src/sagittarius/view/GameScreen.java @@ -19,7 +19,6 @@ public class GameScreen extends BaseScreen { private static Vector3 unprojectedCursor; public static Vector2 worldCursor; - // ---------- METHODs ---------- @Override @@ -33,6 +32,9 @@ public class GameScreen extends BaseScreen { Planet planet2 = new Planet(new Vector2(1400, 700), 1000, 100, Color.ORANGE); mainStage.addActor(planet2); + Moon moon2_1 = new Moon(planet2, 100, 10, 300, Color.MAGENTA); + mainStage.addActor(moon2_1); + Player player1 = new Player(planet1, Color.WHITE); mainStage.addActor(player1); @@ -41,7 +43,7 @@ public class GameScreen extends BaseScreen { MouseInfo mouseInfo = new MouseInfo(); uiStage.addActor(mouseInfo); - + } @Override