Commit e98ad625 by BellCodeEditor

save project

parent b25a5279
Showing with 4 additions and 4 deletions
......@@ -18,7 +18,7 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')]
index = 0
jumpState = "running"
jumpState = "runing"
y = 400
while True:
......@@ -38,7 +38,7 @@ while True:
if y < 400:
y += 5
else:
jumpState = "running"
jumpState = "runing"
wukong = hero[index]
index += 1
if index == 5:
......@@ -49,4 +49,4 @@ while True:
screen.blit(wukong, (150, 400))
# 刷新画面
pygame.display.update()
FPS.tick(60)
\ No newline at end of file
FPS.tick(30)
\ 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