在定义了Bird类之后,在运行程序之后,我从PyCharm得到了一个提示,当我运行bird.draw(win)时,我得到了一个带有背景的游戏窗口。File "C:\Users\marci\PycharmProjects\pythonProject\main.py", line 104, in main File "C:\Users\marci\PycharmProjects\pythonProject\main.py", line 92, in
("imgs", "bird3.png")))]
##import the images of the bird from the images directory.self.height = self.y ##where bird started from, where the bird is now.top_offset = (self.x - bird.x, self.top - round(bird.y)) ##checks distanc