Commit 4d6cdd33 by BellCodeEditor

save project

parent ac14b595
Showing with 1 additions and 2 deletions
......@@ -46,7 +46,7 @@ cube_colors = [
(153, 0, 51), (204, 255, 102), (255, 153, 0)]
center = [2, 8] # 第2行第8列
current_shape = random.choice(random.choice(shape_list))
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -61,7 +61,6 @@ while True:
elif event.key == locals.K_DOWN: # 向下
if center[0] < 25:
center[0] += 1
current_shape = random.choice(random.choice(shape_list))
color = random.choice(cube_colors)
# 将背景图画上去
screen.blit(background, (0, 0))
......
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