Commit e824729b by BellCodeEditor

save project

parent 5e2f57ff
Showing with 2 additions and 2 deletions
......@@ -6,7 +6,7 @@ pygame.init() # 初始化
class Block(pygame.sprite.Sprite): # 障碍物精灵类
def __init__(self,image1,image2,image3):
super().__init__()
super().__init__()
# 加载障碍物的图片
self.image = random.choice([image1, image2, image3])
# 根据障碍物位图的宽高设置矩形
......@@ -14,7 +14,7 @@ class Block(pygame.sprite.Sprite): # 障碍物精灵类
# 障碍物绘制坐标
self.rect.x = 1000
self.rect.y = 500 - self.rect.height
self.score = 1
self.score = 1
class Player(pygame.sprite.Sprite): # 悟空
def __init__(self, image):
......
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