-
Notifications
You must be signed in to change notification settings - Fork 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
Edit example code in lessons #3
base: master
Are you sure you want to change the base?
Conversation
(although I'm at this time running into an error |
Most recent push fixes #3 (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.
Added two comments that need changes. When cleaned up, I can accept these changes.
@@ -48,6 +48,7 @@ Let's make some collisions! | |||
enemies = self.groups["enemy"] | |||
groupcollide(player, enemies, True, True) | |||
groupcollide(enemies, bullets, True, True) | |||
self.spawner.spawn(time_delta) |
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.
This is in lesson six, the scene doesn't have a spawner yet, so this will throw an error.
This line needs to be removed.
(image.get_width() * 0.5, | ||
image.get_height() * 0.5)) | ||
( int(image.get_width() * 0.5), | ||
int(image.get_height() * 0.5)) ) |
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.
Code samples in this project follow PEP8, extra spaces around parentheses is not to style.
Could you remove them?
These revisions get past some issues I was running into when getting to lesson 6 and 7 and 3.