Commit b2000d51 by BellCodeEditor

save project

parent fba6d9ca
Showing with 1 additions and 1 deletions
......@@ -19,7 +19,7 @@ class Player(pygame.sprite.Sprite): # 悟空
def __init__(self, image):
super().__init__()
# 加载悟空精灵图像
self.image = image
self.image = image
# image的get_rect()方法,可以返回pygame.Rect(0,0,图像宽,图像高)的对象
self.rect = self.image.get_rect()
self.rect.x = 150
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment