Skip to content

Conversation

@vivienyuwenchen
Copy link
Owner

No description provided.


# main event loop
while 1:
while True:

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')

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,
}

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

Copy link

@SeunginLyu SeunginLyu left a 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants