Commit fe3a15e8 by BellCodeEditor

save project

parent 64333cf6
Showing with 10 additions and 1 deletions
...@@ -63,7 +63,16 @@ while True: ...@@ -63,7 +63,16 @@ while True:
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_RIGHT: # 向右 if event.key==locals.K_UP:
old_index=index
index+=1
if index>=len(shape):
index=0
current_shape=shape[index]
if check(center)==False:
index=old_index
current_shape=shape[index]
elif event.key == locals.K_RIGHT: # 向右
center[1] += 1 center[1] += 1
if check(center)==False: if check(center)==False:
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