Commit 554674c7 by BellCodeEditor

auto save

parent f7c6f9e6
Showing with 7 additions and 1 deletions
......@@ -10,6 +10,7 @@ grid_num_height = 258 # 纵向格子数量
FPS = 100 # 帧率
count = 0
states = False
gam=False
list1=[]
for i in range(25):
list1.append([0]*15)
......@@ -85,7 +86,9 @@ while True:
if check(center) == False:
index = old_index
current_shape = shape[index]
if list1[1][7]!=0:
gam=Ture
text_surface=font.render("游戏结束,按任意键开始",Ture,(0,0,0))
if states == False:
states = True
center = [2, 8] # 第2行第8列
......@@ -114,7 +117,10 @@ while True:
(cube[1] * 20-20, cube[0] * 20-20, 20, 20), 1)
# 得分
text_surface = font.render(str(score), True, (0, 0, 0))
screen.blit(text_surface, (350,70))
text_surface=font.render("游戏结束,按任意键开始", True,(0,0,0))
screen.blit(text_surface, (350,200))
# 刷新画面
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