feat: added a Moon to the level

This commit is contained in:
Laureηt 2021-04-09 15:10:39 +02:00
parent aa6969651d
commit afb5c05a60

View file

@ -19,7 +19,6 @@ public class GameScreen extends BaseScreen {
private static Vector3 unprojectedCursor; private static Vector3 unprojectedCursor;
public static Vector2 worldCursor; public static Vector2 worldCursor;
// ---------- METHODs ---------- // ---------- METHODs ----------
@Override @Override
@ -33,6 +32,9 @@ public class GameScreen extends BaseScreen {
Planet planet2 = new Planet(new Vector2(1400, 700), 1000, 100, Color.ORANGE); Planet planet2 = new Planet(new Vector2(1400, 700), 1000, 100, Color.ORANGE);
mainStage.addActor(planet2); 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); Player player1 = new Player(planet1, Color.WHITE);
mainStage.addActor(player1); mainStage.addActor(player1);