Commit d86561cc by BellCodeEditor

save project

parent d323f18f
Showing with 2 additions and 2 deletions
...@@ -14,7 +14,7 @@ class Block(pygame.sprite.Sprite): # 障碍物精灵类 ...@@ -14,7 +14,7 @@ class Block(pygame.sprite.Sprite): # 障碍物精灵类
# 障碍物绘制坐标 # 障碍物绘制坐标
self.rect.x = 1000 self.rect.x = 1000
self.rect.y = 500 - self.rect.height self.rect.y = 500 - self.rect.height
self.store=1 self.score=1
class Player(pygame.sprite.Sprite): # 悟空 class Player(pygame.sprite.Sprite): # 悟空
...@@ -43,7 +43,7 @@ hero = [pygame.image.load('hero1.png'), ...@@ -43,7 +43,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero4.png'), pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')] pygame.image.load('hero5.png')]
basic_font=pygame.font.Font('STKAITI.TTF',18) basic_font=pygame.font.Font('STKAITI.TTF',18)
store=0 score=0
index = 0 index = 0
y = 400 y = 400
jumpState = "runing" jumpState = "runing"
......
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