Commit 10be6be3 by BellCodeEditor

save project

parent 002ed809
Showing with 2 additions and 2 deletions
......@@ -55,7 +55,7 @@ gamestate = True
score=0
block_list =pygame.sprite.Group() # 创建精灵组
f=pygame.font.Font('STKAITI.TTF',20)
speed=8
speed=10
sound=pygame.mixer.Sound('score.wav')
while True:
for event in pygame.event.get():
......@@ -116,7 +116,7 @@ while True:
screen.blit(sprite.image, (sprite.rect.x, sprite.rect.y))
if sprite.rect.x <= 0-sprite.rect.width:
sound.play()
speed=8+score//3
speed=10+score//3
score+=1
sprite.kill()
if pygame.sprite.collide_rect(wukong, sprite): # 精灵碰撞检测
......
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