-
Notifications
You must be signed in to change notification settings - Fork 0
Revised for MP5 with suggestions from feedback and start menu #1
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
base: release
Are you sure you want to change the base?
Conversation
|
|
||
| # main event loop | ||
| while 1: | ||
| while True: |
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.
okay while True is better than while 1 but it still does not tell anything about the state of the while loop. I suggest using while running = True or while playing
| P1_stamina_bar = StaminaBar(self.screen,25,"WHITE") | ||
| P2_stamina_bar = StaminaBar(self.screen,350,"RED") | ||
| P1_stamina_bar = StaminaBar(self.screen, P1_STAMINA_BAR_OFFSET, 'WHITE') | ||
| P2_stamina_bar = StaminaBar(self.screen, self.width - P2_STAMINA_BAR_OFFSET, 'RED') |
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.
awesome!! all CAPS constants are so much cleaner
| LEVEL_OFFSETS = {'ground': 0, | ||
| 'first': 25, | ||
| 'second': 50, | ||
| } |
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.
+1 +1 +1, this is so much easier to maintain
SeunginLyu
left a comment
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.
Nice job cleaning up the adding new features and fixing the bugs. The documentation certainly improved and the code has generally got much cleaner. Congratulations on completing your final mini project for Softdes!
No description provided.