Commit 545ae590 by BellCodeEditor

save project

parent 711d007e
Showing with 6 additions and 4 deletions
...@@ -24,9 +24,10 @@ while True: ...@@ -24,9 +24,10 @@ while True:
# 接收到退出事件后退出程序 # 接收到退出事件后退出程序
exit() exit()
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key==locals.K_SPACE: if event.key==locals.K_SPACE:
y=400 if wk=="r":
wk="u" wk="u"
if i>4: if i>4:
i=0 i=0
if wk=="u": if wk=="u":
...@@ -41,6 +42,7 @@ while True: ...@@ -41,6 +42,7 @@ while True:
t+=2 t+=2
else: else:
wk="r" wk="r"
t=30
# 将背景图画上去 # 将背景图画上去
...@@ -52,4 +54,4 @@ while True: ...@@ -52,4 +54,4 @@ while True:
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(20) FPS.tick(60)
\ 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