Commit e981d96e by BellCodeEditor

save project

parent 4bf47bfd
Showing with 4 additions and 4 deletions
...@@ -12,9 +12,9 @@ class Block(pygame.sprite.Sprite): # 障碍物精灵类 ...@@ -12,9 +12,9 @@ class Block(pygame.sprite.Sprite): # 障碍物精灵类
# 根据障碍物位图的宽高设置矩形 # 根据障碍物位图的宽高设置矩形
self.rect = self.image.get_rect() self.rect = self.image.get_rect()
# 障碍物绘制坐标 # 障碍物绘制坐标
self.rect.x = 1000 self.rect.x =1000
self.rect.y = 500 - self.rect.height self.rect.y = 500 - self.rect.height
self.score=1 self.score=50
class Player(pygame.sprite.Sprite): # 悟空 class Player(pygame.sprite.Sprite): # 悟空
def __init__(self, image): def __init__(self, image):
super().__init__() super().__init__()
......
{"第1名": 3, "第2名": 2, "第3名": 2} {"第1名": 2700, "第2名": 2400, "第3名": 1600}
\ No newline at end of file \ No newline at end of file
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