Skip to content

Commit

Permalink
Minor changes to turret selection screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasakev committed Sep 11, 2023
1 parent 14f09fe commit ccdb7f3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ public TurretSelectionScreen(GdxGame game) {
introSprite = new Sprite(backgroundImage);
introSprite.setSize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());


// Add all turrets to turret list
turretList = new ArrayList<>();
// Add turrets to the list
turretList.addAll(Arrays.asList(TowerType.values()));
// Restrictions can be added to the arrays i.e. map == "Forest" && level == 1
// Restrictions can be added to the arrays i.e. map == "Forest" && level == 1 using for loop


Skin skin = new Skin(Gdx.files.internal("flat-earth/skin/flat-earth-ui.json"));
Expand Down Expand Up @@ -111,7 +111,7 @@ public void clicked(InputEvent event, float x, float y) {
// Turret is not selected, select it
selectedTurrets.add(turret);
turretsPicked.setText("Turrets picked: " + selectedTurrets.toString());
logger.info(selectedTurrets.toString());
//logger.info(selectedTurrets.toString());

// You can change the button appearance to indicate selection
}
Expand Down

0 comments on commit ccdb7f3

Please sign in to comment.