Commit 5d3d2a53 by BellCodeEditor

auto save

parent 3b7e2d90
Showing with 2 additions and 5 deletions
......@@ -10,7 +10,7 @@ grid_num_height = 25 # 纵向格子数量
FPS = 30 # 帧率
count = 0
states = False
gameover=False
# 创建窗口
screen = pygame.display.set_mode((460, 500))
pygame.display.set_caption("俄罗斯方块")
......@@ -67,7 +67,6 @@ while True:
if event.type == locals.QUIT:
exit()
if event.type == locals.KEYDOWN:
if event.key == locals.K_LEFT: # 向左
center[1] = center[1] - 1 # 左移1列
if check(center) == False:
......@@ -140,9 +139,7 @@ while True:
if is_full==False:
new_list[row_index]=num_list[i]
row_index-=1
else:
score+=1
num_list=new_list
num_list=num_list
# 得分
text_surface = font.render(str(score), True, (0, 0, 0))
......
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