projet-programmation-orient.../core/src/sagittarius/view/GameScreen.java
2021-04-09 13:31:56 +02:00

41 lines
928 B
Java

package sagittarius.view;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.Stage;
import sagittarius.model.*;
public class GameScreen extends BaseScreen {
// ---------- ATTRIBUTEs ----------
// Constants
public static final int G = 100;
// ---------- METHODs ----------
@Override
public void initialize() {
mainStage = new Stage();
Planet planet1 = new Planet(new Vector2(400, 400), 1000, 200, Color.WHITE);
planet1.setDebug(true);
mainStage.addActor(planet1);
Player player1 = new Player(planet1, Color.WHITE);
player1.setDebug(true);
mainStage.addActor(player1);
}
@Override
public void update(float dt) {
// todo ?
}
}