Commit 10f9af34 by BellCodeEditor

auto save

parent 06212097
Showing with 15 additions and 1 deletions
......@@ -94,6 +94,7 @@ while True:
index = old_index
current_shape = shape[index]
if jieshu==False:
if states == False:
states = True
center = [2, 8] # 第2行第8列
......@@ -155,12 +156,25 @@ while True:
text_surface = font.render(str(score), True, (0, 0, 0))
screen.blit(text_surface, (350,70))
if jieshu==True:
text_surface = frot2.render('游戏结束,按任意键开始', True, (0, 0, 0))
text_surface = frot2.render('游戏失败,按任意键开始', True, (0, 0, 0))
screen.blit(text_surface, (20,200))
score=0
if score==1:
text = frot2.render('游戏胜利,按任意键开始', True, (0, 0, 0))
screen.blit(text, (20,200))
score=0
a=[]
for i in range(25):
a.append([0]*15)
# 刷新画面
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