Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team 2 - merge to team branch #269

Merged
merged 6 commits into from
Oct 16, 2023
Merged

Team 2 - merge to team branch #269

merged 6 commits into from
Oct 16, 2023

Conversation

The-AhmadAA
Copy link
Contributor

@The-AhmadAA The-AhmadAA commented Oct 15, 2023

Shortcut keys now update button visuals
ESC key now opens the pause menu (closing with ESC is still a bit buggy but doesn't break anthing)
Streamlined BuildInputComponent code
Added pause status in GameTime Service, along with getters and setters
Code smell clean up

@The-AhmadAA The-AhmadAA self-assigned this Oct 15, 2023
@The-AhmadAA The-AhmadAA changed the title Shortcut keys now update button visuals, code clean up Team 2 - merge to team branch: Shortcut keys now update button visuals, code clean up Oct 15, 2023
@The-AhmadAA The-AhmadAA added this to the Sprint 4 milestone Oct 15, 2023
@The-AhmadAA The-AhmadAA changed the title Team 2 - merge to team branch: Shortcut keys now update button visuals, code clean up Team 2 - merge to team branch Oct 15, 2023
Copy link
Contributor

@shiv-0831 shiv-0831 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

Copy link
Contributor

@AlasdairS4698737 AlasdairS4698737 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there might be a mistake on line 262 in the MainGameDisplay.
I've seen a pattern of towerToggle(null), with towerToggle(tower#) on a later line.
But for tower number 5, there were two instances of towerToggle(tower5). I wanted to check if this is intentional, or a typo.

Also, I'm a little unsure how your pause implementation will interact with mine, but you made your PR first, I guess.

@@ -234,21 +258,22 @@ public void clicked(InputEvent event, float x, float y) {
TowerType selected = ServiceLocator.getCurrencyService().getTower();
if (selected == towers.get(4)) {
ServiceLocator.getCurrencyService().setTowerType(null);
tower5.setChecked(false);

towerToggle(tower5);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this meant to be towerToggle(null)? It breaks the previous pattern I've seen

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good spotting! This was indeed supposed to be towerToggle(null)

fixed errant towerToggle call for tower5
@The-AhmadAA The-AhmadAA merged commit f757a9d into team-2-ui Oct 16, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants