Commit 76601ee1 by BellCodeEditor

save project

parent 7099c6a7
Showing with 2 additions and 2 deletions
...@@ -71,7 +71,7 @@ while True: ...@@ -71,7 +71,7 @@ while True:
if jumpState == "runing": if jumpState == "runing":
if event.key == locals.K_UP: if event.key == locals.K_UP:
jumpState = "up" jumpState = "up"
b = 8 + score//3 b = 8 + score//3
# 悟空造型 # 悟空造型
wukong = Player(hero[index]) wukong = Player(hero[index])
...@@ -127,7 +127,7 @@ while True: ...@@ -127,7 +127,7 @@ while True:
screen.blit(gameover, (400, 200)) screen.blit(gameover, (400, 200))
gamestate = False gamestate = False
else: else:
if (sprite.rect.x + sprite.rect.width) < wukong.rect.x: if sprite.rect.x + sprite.rect.width < wukong.rect.x:
score += sprite.score score += sprite.score
sprite.score = 0 sprite.score = 0
......
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