Commit c17a70e4 by BellCodeEditor

auto save

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