Commit a7633390 by BellCodeEditor

save project

parent 6c51f7c1
Showing with 8 additions and 3 deletions
......@@ -18,7 +18,7 @@ clock = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
# 载入素材
background = pygame.image.load('bg.png')
font = pygame.font.Font('STKAITI.TTF', 60) # 字体
fontovor = pygame.font.Font('STKAITI.TTF', 18)
fontovor = pygame.font.Font('STKAITI.TTF', 100)
# 俄罗斯方块所有形状
O = [[(0, 0), (0, 1), (1, 0), (1, 1)]]
I = [[(0, -1), (0, 0), (0, 1), (0, 2)],
......@@ -144,8 +144,12 @@ while True:
text_surface = font.render(str(score), True, (0, 0, 0))
screen.blit(text_surface, (350,70))
if gameovor==True:
text=fontovor.render('菜'*10,False,(0,0,0))
screen.blit(text,(0,250))
text=fontovor.render('菜'*3,False,(0,0,0))
screen.blit(text,(0,0))
score=0
num_list=[]
for i in range(25):
num_list.append([0]*15)
# 刷新画面
pygame.display.update()
clock.tick(FPS)
\ No newline at end of file
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