Commit 2f753ecc by BellCodeEditor

auto save

parent 471b1b36
Showing with 3 additions and 1 deletions
......@@ -63,6 +63,8 @@ while True:
if jumpState == "runing":
if event.key == locals.K_SPACE:
jumpState = "up"
if event.key == locals.K_0:
gamestate = True
# 悟空造型
wukong = Player(hero[index])
......@@ -121,7 +123,7 @@ while True:
if sprite.rect.x + sprite.rect.width < wukong.rect.x:
score+=sprite.score
sprite.score = 0
scoreSurf = basic_font.render("分数:"+str(score),True,(255,0,0))
scoreSurf = basic_font.render("Score:"+str(score),True,(0,0,0))
screen.blit(scoreSurf,(850,20))
# 刷新画面
......
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