Commit 1be9d2cb by BellCodeEditor

save project

parent 82e01fdc
Showing with 4 additions and 3 deletions
...@@ -22,6 +22,7 @@ index = 0 ...@@ -22,6 +22,7 @@ index = 0
jumpState = "runing" jumpState = "runing"
y = 400 y = 400
t = 30 t = 30
obstacle = random.
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -43,7 +44,7 @@ while True: ...@@ -43,7 +44,7 @@ while True:
t += 2 t += 2
else: else:
jumpState = "runing" jumpState = "runing"
t = 30 t = 30
wukong = hero[index] wukong = hero[index]
index += 1 index += 1
if index == 5: if index == 5:
...@@ -55,4 +56,4 @@ while True: ...@@ -55,4 +56,4 @@ while True:
screen.blit(wukong, (150, y)) screen.blit(wukong, (150, y))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(30) 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