Commit 3e08a3f3 by BellCodeEditor

save project

parent 5be5e02c
Showing with 3 additions and 0 deletions
......@@ -37,6 +37,7 @@ y = 400
jumpState = "runing"
t = 30
time=0
gamestate=True
Block_list=pygame.sprite.Group()
while True:
......@@ -48,6 +49,7 @@ while True:
if jumpState == "runing":
if event.key == locals.K_SPACE:
jumpState = "up"
if gamestate=True:
if jumpState == "up": # 起跳状态
if t > 0:
......@@ -99,6 +101,7 @@ while True:
if pygame.sprite.collide_rect(wukong,sprite):
gameover=pygame.image.load('gameover.png')
screen.blit(gameover,(400,200))
gamestate=False
screen.blit(aa.image, (aa.rect.x, aa.rect.y))
......
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