Commit f792f369 by BellCodeEditor

save project

parent db7c28b5
Showing with 6 additions and 0 deletions
...@@ -87,6 +87,12 @@ while True: ...@@ -87,6 +87,12 @@ while True:
sprite.rect.x -= 8 sprite.rect.x -= 8
sprite.blit(sprite.image,(sprite.rect.x,sprite.rect.y)) 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