Commit de2611c3 by BellCodeEditor

save project

parent 36a97c1e
Showing with 4 additions and 4 deletions
...@@ -40,9 +40,9 @@ shape_list = [I, J, L, O, S, T, Z] # 7种类型俄罗斯方块 ...@@ -40,9 +40,9 @@ shape_list = [I, J, L, O, S, T, Z] # 7种类型俄罗斯方块
# 一些RGB颜色 # 一些RGB颜色
cube_colors = [ cube_colors = [
(204, 153, 153), (102, 102, 153),(153, 0, 102), (0, 255, 255), (255, 0, 255),(255, 255, 0),
(255, 204, 0), (204, 0, 51),(255, 0, 51), (0, 102, 153), (0, 255, 0), (255, 0, 0),(0, 0, 255), (0, 0, 0),
(153, 0, 51), (204, 255, 102), (255, 153, 0)] (123, 0, 0), (0, 0, 123), (0, 123, 0)]
center = [2, 8] # 第2行第8列 center = [2, 8] # 第2行第8列
...@@ -82,7 +82,7 @@ while True: ...@@ -82,7 +82,7 @@ while True:
index = 0 index = 0
current_shape = shape[index] current_shape = shape[index]
if check(center) == False: if check(center) == False:
old_index = index index = old_index
current_shape = shape[index] current_shape = shape[index]
......
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