Commit 62ce6c6d by BellCodeEditor

auto save

parent 686c5f10
Showing with 2 additions and 0 deletions
......@@ -41,6 +41,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
basic_font = pygame.font.Font('STKAITI.TTF',32)
index = 0
y = 400
jumpState = "runing"
......@@ -106,6 +107,7 @@ while True:
if num > 20:
obstacle = Block(bush,cacti,stone)
block_list.add(obstacle)
screen pygame(super)
for sprite in block_list: # 遍历、展示障碍物精灵
sprite.rect.x -= 8
screen.blit(sprite.image, (sprite.rect.x, sprite.rect.y))
......
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