Commit bcd70101 by BellCodeEditor

auto save

parent ce0e04f7
Showing with 7 additions and 2 deletions
......@@ -5,8 +5,8 @@ pygame.init() # 初始化
score = 0
grid_size = 20 # 格子大小
grid_num_width = 20 # 横向格子数量
grid_num_height = 30 # 纵向格子数量
grid_num_width = 15 # 横向格子数量
grid_num_height = 25 # 纵向格子数量
FPS = 30
......@@ -51,6 +51,11 @@ while True:
# 将背景图画上去
screen.blit(background,(0,0))
#第一个格子画出来
pygame.draw.rect(screen, (255, 0, 0),(140, 20,20, 20),0)
pygame.draw.rect(screen, (255, 255, 255), (140, 20, 20, 20), 1)
#得分
score_text=font.render(str(score),True,(0,0,0))
screen.blit(score_text,(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