Commit c7ff4610 by BellCodeEditor

save project

parent 855ffc70
Showing with 3 additions and 1 deletions
......@@ -68,7 +68,7 @@ while True:
center[1] -= 1
if check(center) == False:
center[1]+=1
elif event.key == locals.K_DOWN: # 向下
elif event.key == locals.K_DOWN: # 向下
center[0]+=1
if check(center) == False:
center[0]-=1
......@@ -107,6 +107,8 @@ while True:
pygame.draw.rect(screen,color,(cube[1] * 20-20, cube[0] * 20-20, 20, 20), 0)
pygame.draw.rect(screen, (255, 255, 255),
(cube[1] * 20-20, cube[0] * 20-20, 20, 20), 1)
for x row in zip(range(1,26),num_list):
for y colors in zip(range())
# 得分
text_surface = font.render(str(score), True, (0, 0, 0))
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