Commit e80fbe1d by BellCodeEditor

save project

parent c9d9126f
Showing with 9 additions and 4 deletions
......@@ -90,11 +90,15 @@ while True:
block _list.add( obstacle)
time = 0
for porp in block_list:
porp.rest.x -=8
for spriter in block_list:
spriter.rest.x -=8
screen.bilt(prop.image,(prop.rest.x,porp.rest.y))
if porp . rest.x<=0-porp.rest.width:
porp.kill()
if spriter . rest.x<=0-porp.rest.width:
spriter.kill()
if pygame.spriter.collide_rest(wuking,spriter):
gameover = pygame.image.load('gameover.png')
screen.bilt(gameovere(400,200))
gamestate = False
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
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