Skip to content

adjusted code to fulfill PEP-8 requirements #8

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kajarosz
Copy link

@kajarosz kajarosz commented Feb 23, 2022

  • fixed sound files extensions in .py file to be compliant with actual files extensions (changed from .wav to .mp3)
  • changed classes names to CamelCase
  • simplified boolean if statements e.g. "if goblin.visible:" instead of "if goblin.visible == True:"
  • simplified intervals statements e.g. "0 < bullet.x < 500" instead of "bullet.x < 500 and 0 < bullet.x"
  • added missing spaces and blanklines
  • removed redundant parenthesis
  • changed CamelCase to snake_case in functions
  • removed variable music = pygame.mixer.music.load() as load method does ot return anything. Using standalone load method in sufficient.

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.

1 participant