feat: added a Moon to the level
This commit is contained in:
parent
aa6969651d
commit
afb5c05a60
|
@ -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);
|
||||||
|
|
||||||
|
@ -41,7 +43,7 @@ public class GameScreen extends BaseScreen {
|
||||||
|
|
||||||
MouseInfo mouseInfo = new MouseInfo();
|
MouseInfo mouseInfo = new MouseInfo();
|
||||||
uiStage.addActor(mouseInfo);
|
uiStage.addActor(mouseInfo);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue