Commit cfb8fde9 by BellCodeEditor

save project

parent 1dd7b9f7
Showing with 14 additions and 0 deletions
...@@ -81,3 +81,17 @@ while True: ...@@ -81,3 +81,17 @@ while True:
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
clock.tick(FPS) clock.tick(FPS)
if states == False:
states = True
center = [2,8]
shape = random.choice(shape_list)
index = random.randint(0,len(shape)-1)
current_shape = shape[index]
color = random.choice(cube_colors)
couunt+=1
if count % FPS == 0:
cnter[0] = center[0] + 1
if check(center) == False:
center[0] = center[0] - 1
states = False
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