Commit 2c9e06af by BellCodeEditor

save project

parent 00bb2c18
Showing with 6 additions and 2 deletions
......@@ -49,6 +49,10 @@ cube_colors = [
center = [2, 8] # 第2行第8列
current_shape = [(0, -1), (0, 0), (0, 1), (-1, 0)]
c = random.choice(cube_colors)
cu = random.choice(shape_list)
current_shape = random.choice(cu)
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -67,8 +71,8 @@ while True:
# 将背景图画上去
screen.blit(background, (0, 0))
c = random.choices(cube_colors)
cube = random.choices(shape_list)
# 计算出所有小方块的行、列位置
current_pos = []
......
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