Skip to content

Commit

Permalink
Integrated Turret selection screen with other starting screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasakev committed Sep 10, 2023
1 parent d5ff441 commit 7746e59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void create() {
*/
private void onStart() {
logger.info("Start game");
game.setScreen(GdxGame.ScreenType.TURRET_SELECTION);
game.setScreen(GdxGame.ScreenType.STORY_SCREEN);
// game.setScreen(GdxGame.ScreenType.LEVEL_SELECT);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void spawnPlanetBorders() {
if (Gdx.input.justTouched()) {
dispose();
logger.info("Loading level {}", planet[4]);
game.setScreen(new MainGameScreen(game));
game.setScreen(new TurretSelectionScreen(game));
} else {
Sprite planetBorder = new Sprite(new Texture("planets/planetBorder.png"));
batch.draw(planetBorder, planet[0] - 2, planet[1] - 2, planet[2] + 3, planet[3] + 3);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public TurretSelectionScreen(GdxGame game) {

// Set up the background
batch = new SpriteBatch();
Texture introImage = new Texture(TEXTURE);
introSprite = new Sprite(introImage);
Texture backgroundImage = new Texture(TEXTURE);
introSprite = new Sprite(backgroundImage);
introSprite.setSize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());


Expand Down

0 comments on commit 7746e59

Please sign in to comment.