Commit f792f369 by BellCodeEditor

save project

parent db7c28b5
Showing with 7 additions and 1 deletions
......@@ -86,7 +86,13 @@ while True:
for sprite in block_list:
sprite.rect.x -= 8
sprite.blit(sprite.image,(sprite.rect.x,sprite.rect.y))
print(len(blosk_list))
print(len(blosk_list))
if sprite.rect.x <=0-sprite.rect.width:
sprite.kill()
if pygame.sprite.collide_rect(wukong, sprite):
gameover = pygame.image.load('gameover.png')
screen.blit(gameover,(400,200))
......
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