We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ok so I am at the end of the second video, and I try running the sript with ctrl+ b, but the window opens and closes immediately.
So I went to my terminal to run it, and got a Type error, saying 'TypeError: argument 1 must be pygame.Surface, not list'
Any clue how to fix this? Edit: here is my code: https://pastebin.com/ugMudCNt
The text was updated successfully, but these errors were encountered:
In the draw_window function u have to use BG_IMGS[0] because you loaded the imgs as a list. So the new draw_windows function would look like this:
def draw_window(win, bird):
win.blit(BG_IMG[0], (0,0)) bird.draw(win) pygame.display.update()
#############################################
Sorry, something went wrong.
No branches or pull requests
Ok so I am at the end of the second video, and I try running the sript with ctrl+ b, but the window opens and closes immediately.
So I went to my terminal to run it, and got a Type error, saying 'TypeError: argument 1 must be pygame.Surface, not list'
Any clue how to fix this?
Edit: here is my code: https://pastebin.com/ugMudCNt
The text was updated successfully, but these errors were encountered: