Commit a73f3e43 by BellCodeEditor

auto save

parent be0c4a33
Showing with 46 additions and 3 deletions
...@@ -35,7 +35,7 @@ while True: ...@@ -35,7 +35,7 @@ while True:
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
status="up" status="up"
if status=="up": if status=="up":
if y >150: if y =30:
y -=5 y -=5
else: else:
status="down" status="down"
...@@ -52,4 +52,48 @@ while True: ...@@ -52,4 +52,48 @@ while True:
screen.blit(wukong, (150, y)) screen.blit(wukong, (150, y))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(20) FPS.tick(20)
\ 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