Commit 075c0276 by BellCodeEditor

save project

parent e9e86c4b
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=8 speed=10
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -84,7 +84,7 @@ while True: ...@@ -84,7 +84,7 @@ while True:
else: else:
jumpState = "runing" jumpState = "runing"
t = 30 t = 30
speed=8+score//3 speed=10+score//3
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (bg_x, 0)) # 远处背景 screen.blit(background, (bg_x, 0)) # 远处背景
screen.blit(road, (roadx, 500)) # 路 screen.blit(road, (roadx, 500)) # 路
......
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