From fbc261fba514d11f1161741bbba75696ed0af6ab Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 11 Jun 2022 09:56:18 +0800
Subject: [PATCH] save project

---
 my_Tetris.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/my_Tetris.py b/my_Tetris.py
index a03ec5d..bc3eea3 100644
--- a/my_Tetris.py
+++ b/my_Tetris.py
@@ -9,6 +9,7 @@ grid_num_width = 15     # 横向格子数量
 grid_num_height = 25      # 纵向格子数量
 FPS = 30
 a=0
+b=True
 
 # 创建窗口
 screen = pygame.display.set_mode((460, 500))
@@ -95,6 +96,19 @@ while True:
         center[0] = center[0] + 1
         if check(center) == False:
             center[0] = center[0] - 1
+            b= False
+        a=0
+    if b==False:
+        b=True
+        center = [2, 8]     # 第2行第8列
+        shape = random.choice(shape_list)
+        index = random.randint(0, len(shape)-1)     # 随机形状索引
+        current_shape = shape[index]
+        color = random.choice(cube_colors)    
+      
+
+
+
 
     # 将背景图画上去
     screen.blit(background, (0, 0))
--
libgit2 0.25.0