Commit 03175c96 by BellCodeEditor

auto save

parent d96f7abe
Showing with 6 additions and 1 deletions
...@@ -18,7 +18,8 @@ pygame.display.set_caption("俄罗斯方块") ...@@ -18,7 +18,8 @@ pygame.display.set_caption("俄罗斯方块")
clock = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数) clock = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
# 载入素材 # 载入素材
background = pygame.image.load('bg.png') background = pygame.image.load('bg.png')
font = pygame.font.Font('STKAITI.TTF', 60) # 字体 font1 = pygame.font.Font('STKAITI.TTF', 60) # 字体
font2 = pygame.font.Font('STKAITI.TTF', 30)
# 俄罗斯方块所有形状 # 俄罗斯方块所有形状
O = [[(0, 0), (0, 1), (1, 0), (1, 1)]] O = [[(0, 0), (0, 1), (1, 0), (1, 1)]]
I = [[(0, -1), (0, 0), (0, 1), (0, 2)], I = [[(0, -1), (0, 0), (0, 1), (0, 2)],
...@@ -130,6 +131,10 @@ while True: ...@@ -130,6 +131,10 @@ while True:
else: else:
score+=1 score+=1
num_list=new_list num_list=new_list
if num_list[1][7]!=0:
states=False
text_shibai=font1.render(("游戏结束,按任意键开始",True,(0,0,0))
screen.blit=htttgggfffffffffffffte tj 3 s,l3s4drs78 wcygdx v 4c w5 0nw frvb hvfy90wasdnhf0nrqrtbvygce0 ogutfv4enrtyem gyofsgvtrv7f9uhbfvgtvj5kdcjh bun lbhfriod fvsfahjdzxm
# 得分 # 得分
text_surface = font.render(str(score), True, (0, 0, 0)) text_surface = font.render(str(score), True, (0, 0, 0))
screen.blit(text_surface, (350,70)) screen.blit(text_surface, (350,70))
......
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