Commit c17a70e4 by BellCodeEditor

auto save

parent d94ac43d
Showing with 6 additions and 2 deletions
...@@ -17,7 +17,7 @@ while True: ...@@ -17,7 +17,7 @@ while True:
if center[1]<15: if center[1]<15:
center[1]=center[1]-1 center[1]=center[1]-1
elif event.key==locals.K_LEFT:
if center[1]>1: if center[1]>1:
center[1]=center[1]-1 center[1]=center[1]-1
...@@ -25,6 +25,11 @@ while True: ...@@ -25,6 +25,11 @@ while True:
if center[0]<25: if center[0]<25:
center[0]=center[0]+1 center[0]=center[0]+1
# 创建窗口 # 创建窗口
screen = pygame.display.set_mode((460, 500)) screen = pygame.display.set_mode((460, 500))
pygame.display.set_caption("俄罗斯方块") pygame.display.set_caption("俄罗斯方块")
...@@ -51,4 +56,3 @@ while True: ...@@ -51,4 +56,3 @@ while True:
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
clock.tick(FPS) clock.tick(FPS)
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