Commit 545ae590 by BellCodeEditor

save project

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