Commit 94c6effe by BellCodeEditor

auto save

parent 6aff8f96
Showing with 2 additions and 1 deletions
......@@ -7,7 +7,7 @@ grid_size = 20 # 格子大小
grid_num_width = 15 # 横向格子数量
grid_num_height = 25 # 纵向格子数量
FPS = 30
center=[]
# 创建窗口
screen = pygame.display.set_mode((460, 500))
pygame.display.set_caption("俄罗斯方块")
......@@ -20,6 +20,7 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.
pygame.draw.rect(background,(255,0,0),(160,20,20,20),0)
pygame.draw.rect(background,(0,0,0),(160,20,20,20),1)
# 将背景图画上去
......
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