Commit e585c9f8 by BellCodeEditor

save project

parent ec27287b
Showing with 2 additions and 2 deletions
...@@ -101,8 +101,8 @@ while True: ...@@ -101,8 +101,8 @@ while True:
sprite.rect.x -= 8 sprite.rect.x -= 8
screen.blit(sprite.image,(sprite.rect.x,sprite.rect.y)) screen.blit(sprite.image,(sprite.rect.x,sprite.rect.y))
if sprite.rect.x <= 0-sprite.rect.width: if sprite.rect.x <= 0-sprite.rect.width:
sprite.kill() sprite.kill()
if pygame.sprite.collide_rect(wukng,sprite): if pygame.sprite.collide_rect(wukong,sprite):
gameover = pygame.image.load('gameover.png') gameover = pygame.image.load('gameover.png')
screen.blit(gameover,(400,200)) screen.blit(gameover,(400,200))
gamestate = False gamestate = False
......
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