-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
There was a problem hiding this 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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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