Commit 2cb20494 by BellCodeEditor

auto save

parent 66de054b
Showing with 6 additions and 2 deletions
......@@ -47,8 +47,11 @@ cube_colors = [
(153, 0, 51), (204, 255, 102), (255, 153, 0)]
color = random.choice(cube_colors)
center = [2, 8] # 第2行第8列
def check:
center[1] = center[1]-1
for sd in cube:
if sd < 1:
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -57,6 +60,7 @@ while True:
if event.key == locals.K_RIGHT: # 向右
if center[1] < 15:
center[1] += 1
elif event.key == locals.K_LEFT: # 向左
if center[1] > 1:
center[1] -= 1
......
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