Commit b0794f9a by BellCodeEditor

save project

parent 8ffa9f15
Showing with 3 additions and 2 deletions
......@@ -7,7 +7,8 @@ pygame.init() # 初始化
score=0
old_score=0
speed=8
rs=8
speed=rs
class Block(pygame.sprite.Sprite): # 障碍物精灵类
def __init__(self,image1,image2,image3):
......@@ -141,7 +142,7 @@ while True:
txt=text.render('分数:'+str(score),True,(255,255,255))
screen.blit(txt,(0,0))
speed = 8+score//3
speed = rs+score//3
if score>old_score:
scau.play()
......
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