Commit c5bda34b by BellCodeEditor

save project

parent 8056893e
Showing with 4 additions and 4 deletions
import pygame import pygame
from pygame import locals from pygame import locals
import random import random
pygame.init() # 初始化 pygame.init() # 初始化
score = 0 score = 0
grid_size = 20 # 格子大小 grid_size = 20 # 格子大小
...@@ -160,6 +159,7 @@ while True: ...@@ -160,6 +159,7 @@ while True:
num_list = [] num_list = []
for i in range(25): for i in range(25):
num_list.append([0] * 15) num_list.append([0] * 15)
score=0
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
clock.tick(FPS) clock.tick(FPS)
\ No newline at end of file \ 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