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