Commit 199b1165 by BellCodeEditor

save project

parent 623a2990
Showing with 2 additions and 2 deletions
...@@ -52,7 +52,7 @@ time = 0 ...@@ -52,7 +52,7 @@ time = 0
gamestate = True gamestate = True
block_list =pygame.sprite.Group() block_list =pygame.sprite.Group()
score=0 score=0
speed=100 speed=10
old_score=0 old_score=0
score_studio=pygame.mixer.Sound("score.wav") score_studio=pygame.mixer.Sound("score.wav")
while True: while True:
...@@ -64,7 +64,7 @@ while True: ...@@ -64,7 +64,7 @@ while True:
if jumpState == "runing": if jumpState == "runing":
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
jumpState = "up" jumpState = "up"
speed=8+score//3 speed=10+score//3
# 悟空造型 # 悟空造型
wukong = Player(hero[index]) wukong = Player(hero[index])
if jumpState == "runing": # 跑步状态下 if 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